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
Similar Messages:
Jul 27, 2010
I am creating a presentation on basis of some selected values and maitaning the selected values in a session variable named Session("userPref") in collection form.
Now I am opening a TablePreview.aspx page by javascript window.open() function.
On Page_Load of TablePreview.aspx I am reading some values of Session("userPref") and doing some operatons.
For saving the presentation I have created a page wizardsave.aspx.
Now I am opening the wizardsave.aspx from TablePreview.aspx by window.open() function for saving presentation, but on Page_Load of wizardsave.aspx. I found that some value from collection stored in Session("userPref") have lost.
View 4 Replies
May 3, 2010
which place(exact folder) the session & session id will be stored?
View 8 Replies
Jan 29, 2011
I need to save how many times (seconds / minutes) each user spend in my site from his enterance to my site till exit it. How can I do this?
View 9 Replies
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
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
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
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
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
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
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
Apr 29, 2010
I have a clear button and a textbox in an aspx page. I set the session variable in this page as
String str = Textbox1.Text;
Session["TypeIds"] = str;
and I clear the sessions in a clear button event as
Session["TypeIds"]=null;.
Then when the user types some value in the textbox ,on Response.Redirect on another aspx page, the session variable returns null values.It does not retain its session state. The session state has to be maintained in the next page. Is it because this clear button event and setting explicitly to null creates this problem?
View 7 Replies
Oct 1, 2010
I have 2 sites, one the main product site the other a secure site featuring the basket and checkout processes.
When a user clicks "add item to basket" I am creating a basket in a database and then adding the items to the basket. The theory was then to store the id from the database for the basket (the basketid) in a cookie, redirect the user to secure site, use the basket id from the cookie and display the contents in the basket.
However I am having trouble getting the secure site to use the same cookie. When I redirect the users to the secure site, the basket appears empty. I need to go back to the main site and then back to secure before the cookie appears.
Here is the code for the cookie
[Code]....
And then on the secure site this is how it gets the basket ID from the cookie
[Code]....
But like I say it's having problems. I've tried replacing the cookies with session variables as well but it didn't work.
View 6 Replies
Jul 28, 2010
I have a site that I am trying to extend how long a session stays open even though the user is inactive. I have this set in my web.config
<sessionState mode="InProc" timeout="720" />
And this is set it IIS
Time-out (in minutes):
720
But it is still timing out after like 15 minutes.
View 6 Replies
Aug 31, 2010
I would have a dataset that I would break into 5 new generic LIST<>. Now the user needs to see one record at a time and navigate through the list
Fields like
From date : Text box with calendar
To Date : Text box with calendar
Manager Reporting To : Drop down list
Buttons on Move Back and move Forward
Now I would have 4 such similar lists which I have to pick up from the audit table. When the user clicks on move back and move forward buttons he should be able to navigate through records in my list that I have fetched in the beginning . I can store itin a session or viewstate till it gets updated again. How do I achieve this.
Should I be writing a webmethod to go back and pick up the next record agian and display
Can I also a gridview instead of textboxes.
View 2 Replies
May 30, 2010
i have done the following
void Session_Start(object sender, EventArgs e)
{
// Code that runs when a new session is started [code]...
basically am using them to store user id and status, so that pages can be validated, by there use.i can stop person from accessing home directly wihtout signing is and so on.can session variable be hacked as they are stored in an external data source and are available to the full website?
View 3 Replies
Apr 1, 2010
I have developed an ASP.net project with VB.net and SQL Server 2008.
I have used session variable to store the user id while user login to the system.
The declaration is as follows:
Session("user_id") =txt_user.text
On the first page after login I have displaying the name using this Session value. And the menu also displaying according to the session value.
The code I am retreiving the value is,
dim user_name as string
user_name=Session("user_id")
On my development system everything working fine.
But when I implement the system to live server, the session value is not getting even for the first time.
I don't think this is problem with the code. This is some thing esle..
The implemented computer have Windows XP professional operating system and SQL Server 2008 Express edition datbase.
I have installed framework v2.0 and theIIS version is 5.1
View 5 Replies
Jul 18, 2010
I have two projects ,one is webforms and other is Business logic, i am storing username in Session Variable, i have audit module in businss logic which has event handlers to do auditing on object create / remove. i want to store username in audit trail, i want to save username in some global place which is session bounded so that i can get the username in my audit module.i dont want to refer System.web, or httpcontext in my businesslogic project.pls help how i can acheive this. i found this article but cudnt understand much.
"Now one option if you want to have your DLL pull the stuff from Session is to abstract out session. So you could define an interface like IStorage, that your library will know how to use. Then you can have a SessionStorage or MemoryStorage class and use IoC to inject the appropiate class into your library classes. This gives you the freedom to code it how you wanted it to be coded without tying your code to Session. Oh and one other benefit if done properly can be used to not tie your code to session in the web either.
View 7 Replies
May 21, 2010
I want to use something better thatn using the session to store global values, because it has somw problems
View 4 Replies
Nov 18, 2010
I want to pass multiple values to another page from my gridview. For sending i got this codes : (writing same page selected values)
[Code]....
Here is my question How can i catch from another page this values?
View 6 Replies
Apr 22, 2010
when designing E-commerce website or shopping cart we call session value from login and we use it anywhere we need,but i want to know how session values are remembered and retrieved??i mean where they are stored and how it will be accessed
View 4 Replies
Oct 18, 2010
We are working in a web application using Session variables to store the clients ID to operate with them in all app (making orders, reports, etc....) but randomly users get the client ID of another user in any moment using the application.
I have tried to solve it in a first step adding to system.web section in the web.config file this:
[Code]....
ASP.NET State Service is running in server normally, It began run just before this last change, but we have not solved the problem either with this solution.
The server is Windows Server 2003 Standard Edition SP2 32bits running IIS 6.0, and the application is made with Framework 2.0
View 12 Replies
Dec 1, 2010
Is it possible to assign all values in session to variable.
retrieving some values from first page with this code
Dim retProductIDs As List(Of Integer) = CType(Session("ProductIDs"), List(Of Integer))
View 2 Replies
Sep 6, 2010
I have populated a gridview with the following code
string WhereClause = query;
string OrderBY = "PostedOn desc";
int PageIndex = gvJobPosting.PageIndex;
int PageSize = gvJobPosting.PageSize;
[Code]....
But on int PostID = JobID[0].JobPostingID; i'm getting the error NullReferenceException Object reference not set to an instance of an object how do I set this so it takes the jobpostingID out of the session and loads it into the variable so i can use it as the parameter to call teh stored procedure
View 1 Replies
Feb 21, 2011
If I have two "webroles" (azure), that are NOT using a shared custom state provider, is the "Session.SessionID" be the same in both?It would make sense ,considering that both get the same cookie (because are in the same domain) and have the same machineKey, but I'm not sure
View 3 Replies