State Management :: Maintain Session On Of Users On A Webpage?

Oct 25, 2010

I have to maintain session of two users on a sigle page.And the path is. UserPath:

1.User logins with his credentials((We retrive their credentials from login table) .
2.He invites some of his friends for a birthday party.
3.And send an url link to share some of the gifts with them in which gifts are provided in Share.aspx page.
4.Userlogouts.

Invites path:

1.Invite logs in with his credentials(We retrive their credentials from invites table).
2.He is directed to go to Share.aspx and list the items he require.
3.And he logs out.

Now i have problem in maintaining session for both the user and invite. How can i maintain the session so,that the user can identify a particular invite from the list of invites an his chosen items.

View 1 Replies


Similar Messages:

State Management :: Session Became Null - Maintain Data?

Aug 17, 2010

I have a requirement where i need to download mutiple files as a single zip file.There is linkbutton named HOME as well in the page. when this linkbutton is clicked it should redirect to homepage.aspx. I found a ICSharpCode.SharpZipLib.dll in net and used in my website. Here is the code

[Code]....

With the above code i got the expected result i,e. i can zip the files and save on client system. But the problem is after saving/canceling the zip file if user clicks on linkbutton in the page_load event Session[getdata] became null. there is no data in Session. what might be the problem? Actually it should redirect to homepage.aspx but its going to login.aspx because Session[getdata] is null.

View 4 Replies

State Management :: Maintain Session Using Global.asax?

Dec 20, 2010

i dont know about Global.asax so give some information about it and also tell me about the implementation and use of session_start and session_end event. How to call Global.asax in our website.

View 5 Replies

State Management :: Count The Number Of Users Per Webpage?

Sep 27, 2010

I have a website that has 10 aspx pages in it, and I'm trying to count how many users are on any one page at a time, and display that number on the web page. I have set it up to use an Application object ("TotalViewers"), and initialize it to 0 in the Application_Start event handler of the global.asax file. My reasoning (probably way off base) is to increment the count on each page load, and then decrement the count on each page unload. The increment part works ok, but when I add the code in the page unload event handler to decrement, it seems that Unload happens before the Page is presented to the client, so the value always stays the same (adds one in page load, subtracts one in page unload).

How else can I track number of users on each page? (simply, becuase I am still a beginner). I have already done some google searching and haven't come up with anything useful.

All my pages are being navigated via a TreeView control.

View 6 Replies

State Management :: Session Getting Shared Among Different Users?

May 19, 2010

[Code]....

Above is my configuration.

Because one user is getting the session values of other users due to some reason that I dont know .

View 3 Replies

State Management :: Different Session Timeouts For Different Users?

Jun 22, 2010

I are building a web application which will be deployed to Windows Azure. I want user to set session timeout value which will be stored in Database. Currently I am aware of Web.Config method to set session timeout. i.e.

<sessionState
mode ="InProc"
timeout ="60"></sessionState>

Is there any method to set session timeout value according to User's Preference?

View 5 Replies

State Management :: Different Session Timeout For Different Users?

Jun 1, 2010

I have a default 30 min session timeout for normal users. Now i want to set 1 hour time out for admin users. Can someone guide me how to acomplish this.

View 4 Replies

State Management :: How To Get Total Time Of Users' Session

Apr 1, 2011

I totally have no idea on how to do this. How can I get the time everytime the user use my system. We are using AD account here so we don't have login and log out. All I want is as long as the user browse to my system whether he is working or it or not become away or any, I will record its time and save it in my database then accumulate all the time he spent in my system for admin reporting.

View 5 Replies

State Management :: Certain Users Losing Certain Session Variables?

Mar 14, 2011

There are a couple of user's experiences session variable loss after they've clicked a confirm button and their information is email via a relay hosting server. Below, I commented exactly where the session variables get lost.

What could be causing the session variable loss? So far, this only happens to a few users.

Part of the email that gets sent out:

[Code]....

Web config file:

[Code]....

View 4 Replies

State Management :: Warning Users Before Session Timeout?

Aug 29, 2010

In my web application, I want to alert users 5 minutes before their session timeout. If the users want, they can either extend their session or ignore the mssage - in which case after session timeout they will be redirected to the login page (I'm also using forms authentication in my site, so have set the authentication cookie expire time to the session timeout).I know I can do the alert with window.setTimeout, but I want to get user's respond and refresh the page if they want a session extension. How can I do that,
in which event and whether I can do this in C# code behind. And also, should I implement this
in the base page or somewhere else? How can I implement the auto page refresh - should I use a hidden button and click it from Javascript?

View 4 Replies

State Management :: Session Values Are Not Getting Stored If More Users Access The Site

Apr 2, 2010

l am facing a problem with session.

If many users access the site, the session gets crashed and data which i store to access across pages is getting lost.

a best way to store data (as session does) so that i can use the data across my web application.

View 5 Replies

State Management :: How To Use Current Session (webpage) In Client Side ActiveX Control

May 3, 2010

I'm curently developing web application which uses standard form authorization and, of course, server session objects (quite classic app). Now I'm developing client side component, which base functionality is to allow users to acquire tiif/jpg/pdf document from scanner (client side) and send it to server. Because of scan complexity and need for very user friendly interface i decided to implement Activex object (object written in .net 2.0). Until now all was ok, so I have got activex which succesfully registers and scan documents on client - but i cannot manage with sending files to server.

My concept of sending files was like that:

- preparing Upload.aspx web page wich is used for reciving files sended by POST method and saving files in database (of course to proper save in database i need some current user context information) - in ActiveX i decided to use System.Net.HttpWebRequest object to prepare and send data the problem was third point:

- i thought that in-proc activex object would "derive" web session form web page activex is placed on - but i was wrong (or i made it wrong). Whenever i send request form Activex, in response i got login.aspx page - so it looks that new session is created and new authorization is needed.

I was trying to pass to my Activex values stored in "ASP.Net_SessionId" and ".ASPXAUTH" cookies, as i found that these are the values identifying session and athorized user - but with no luck.

I think, that becaause HTTP is stateless protocol all information needed to "connect to/share" existing session on IIS server need to be included in request data, so there must be way to add these information to request sended from my activex.

I would be very grateful, if someone could provide me information what should i add (headres/cookies/etc... ?) to my request data so it could share session from "parent" web page.

View 1 Replies

State Management :: Maintain Page View State In Roundtrip Between Webpages?

Jun 15, 2010

I am having a ASP.net application it having three pages ,page 1,page 2,page 3,when the user navigating between this pages I want to maintain the view state in page level after postbacks(i.e.) .If a user visits page 3, passing some query loads some data .then he moves to page 1 doing some entries .after that he once again moves to page 3 now I want to display the data previously available at the time he moves to page 1, same
way I want to do to my three pages up to the user logging out.

View 8 Replies

State Management :: Serializing To File System To Maintain State?

Oct 25, 2010

I have a system that has several large objects that need to be built and populated each and every time, and these objects may be accessed quite often as well. As a strategy, caching would not be that good for me because there are potentially thousands of these objects which are fairly large. So I propose to serialize the objects to the file system and then deserialize it when I need those objects again. I have several classes that need this serialization functionality.

These objects change as well, so on the next access I check if there were any changes and then I grab only the changes and edit the object, and then reserialize the object.

My question is what is the best way to do this, since I have several classes ..

View 2 Replies

State Management :: How To Maintain State In Menu Control

Oct 12, 2010

I am working on vs. 2010. I have menu control in master page.

my menu having two pages default1.aspx, default2.aspx .

when user enter some values in default1.aspx page after click default2.aspx and enter some values

now if I click default1.apx page doesn't having values. but i want to maintain those values in my all pages .

View 1 Replies

State Management :: Maintain State Of Treeview Across Application?

Mar 4, 2011

I am using a treeview in my master page and every node having link to its container page.That means click on any child node of treeview its redirect to another page by taking some value.

Now every time I click on nodes of treeview, its get collaps when child page loaded...

Now regaring maintain state of treeview across my web application...

View 13 Replies

State Management :: How To Maintain State In Html

Sep 24, 2010

how can i maintain state in html as i am building site which has too much pages in html i can't convert them to aspx but due to some requirements i want to maintain state of variable.

View 3 Replies

State Management :: How To Maintain User Log State

Mar 10, 2011

I have one web application. In that, I have two pages. One is view/edit page and another one is login page. The view/edit page contains one edit button and one login button.

First I execute view/edit page, at that time I dont want to show edit button. When user clicks login button, the page will be redirected to login page, where the user has to enter username and password. If user enters both correct, again the page will be redirected back to view/edit page. This time, the edit button has to be shown to make some modifications, since the user is authenticated.

I tried this thing by using session with cookieless. It works perfectly but some times it shows web page not available. I made session timeout 120 minutes and cookieless is true. In URL session ID also available.

So, whats the alternate way to maintain user log state or whats wrong in web.config file.

View 1 Replies

State Management :: Error :Session State Has Created A Session Id, But Cannot Save It?

Nov 18, 2010

I read the solutioin for this error, at the following link :http://forums.asp.net/p/1046935/1576341.aspxbut I am still not clear what exactly causes the error. I have two doubts :1. Can anyone please elaborate a bit on this issue, with any example ????2. Is there any drawback of this approach ?

View 4 Replies

Iis - Maintain A Session State Per Browser Tab

May 15, 2010

I'd like to maintain a session state per browser tab.

Is this easy (or even possible) to do in ASP.NET?

Example: A user hits Ctrl-T in firefox 5 times and visits the site in each tab. I'd like each tab to have its own session state on the server

View 2 Replies

State Management :: How To Maintain Value Of Html Control After Postback

Jun 6, 2010

i use html form and html control to submit data,like bellow:

[Code]....

after submit,the input email lost it's data,how to keep it?

View 6 Replies

State Management :: How To Maintain ViewState On Postback Of Textboxes

Apr 19, 2010

I have "n" <tables></tables> on my page and each <table> has One(1) <asp:CheckBox.. Enable ='true"/> and "x" <asp:TextBox Enabled="false"..>. Each Table looks as follows

[Code]....

When I click checkbox, it calls javascript function and enables textboxes (I have added onclick attribute to checkbox). Page also has <asp:Button ...Text="Submit"/> whcih actually grabs the data from the textboxes on the page and send it to the databse. Here is the Onclick event of the <asp"button../>

[Code]....

If the exception is thrown , textBoxes are not reset but on postback textboxes appear as disabled (values are not reset)

So here is what happening on postback when exception is thrown

1) Values are not reset (that is what want)

2) Texboxes appear as Disabled (that is what I don't want on exception, REMEMBER I enable textBoxes using client side script)

How can I keep the textboxes enabled = "true"

View 4 Replies

State Management :: Maintain Master Page Control State On Load Of Content Page?

Dec 30, 2010

I have created a matser page with a two radio buttons, text box and a button. Whenever user sets some values to these control and clicks the button, i will navigating him from one content page to another based on the data he has entered. The problem is after the content page load, the values selected/given in the controls(radio button, text box) are getting cleared.

Is there some way to maintain the values ?

View 8 Replies

State Management :: Web Controls In Collapsible Panel Does Not Maintain Viewstate?

Jul 23, 2010

I have a search page containing a collapsible panel with several controls including text, radio, drop list and check box. In the same page there is a gridview to display search result and links to other pages.Everytime I click on a link in the gridview, the viewstate is only maintained if I nevigate with the pagination of the gridview. However if I click on a link in the gridview and click the back button to the search, everything goes back to default, and the search results will be gone from the gridview. How may I enable the controls and the gridview to remain the same if I hit back button to it?

View 3 Replies

Web Forms :: To Maintain The State Of The Treeview Without Storing It In Session

Feb 10, 2010

I am using master page.

(1) to maintain the state of the treeview without storing it in session or view state or

(2) I am binding the treeview control dynamically from a xml. Even if I use session state is ther any option to use it without using SelectedNodeChanged event because when u click the treeview node , first master page will postback for this event and then the child page and then again the master page will post pack (as the child page has inherited the master page). So here in this case we are posting the master page twice and it is reducing the performance.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved