Session Variable Problem
-
Hi, wud anybody help me. I have problem of session variable in my asp.net project. I use session variable to pass values of some variable to another page. It is working fine. but after some time it expires. Is there another way to use variable without stroing in sessin variable and that variable will be used in all foms. Give me right solution please. Thanks in advance. J. A. Patel
-
Hi, wud anybody help me. I have problem of session variable in my asp.net project. I use session variable to pass values of some variable to another page. It is working fine. but after some time it expires. Is there another way to use variable without stroing in sessin variable and that variable will be used in all foms. Give me right solution please. Thanks in advance. J. A. Patel
-
Hi, Thanks for advise. But my problem is that the values of variables are remain same for whole application. The values are stored as per userloginid and password. So for every user there is variables which stored loginid, password, and other inforation. and i want that information in all pages that are after login pages. Give me better solution please. Thanks in advance again. J. A. Patel
-
Hi, Thanks for advise. But my problem is that the values of variables are remain same for whole application. The values are stored as per userloginid and password. So for every user there is variables which stored loginid, password, and other inforation. and i want that information in all pages that are after login pages. Give me better solution please. Thanks in advance again. J. A. Patel
-
Hi, Thanks for advise. But my problem is that the values of variables are remain same for whole application. The values are stored as per userloginid and password. So for every user there is variables which stored loginid, password, and other inforation. and i want that information in all pages that are after login pages. Give me better solution please. Thanks in advance again. J. A. Patel
-
If u want to store the data application level then use it http://www.codeproject.com/aspnet/cachingaspnet.asp[^]
The solution given by u is not as i want. i want another solutions. J. A. Patel
-
Hi, Thanks for advise. But my problem is that the values of variables are remain same for whole application. The values are stored as per userloginid and password. So for every user there is variables which stored loginid, password, and other inforation. and i want that information in all pages that are after login pages. Give me better solution please. Thanks in advance again. J. A. Patel
You could use an encrypted cookie to persist the data and explicitly set an expiration date/time. I assume you are doing this for authentication purposes... ? Have you got your web.config set properly, deny all anonymous request, accept all authenticated requests... Have a look here[^]
Paul Lyons, CCPL
Certified Code Project Lurker -
The solution given by u is not as i want. i want another solutions. J. A. Patel
i think that the best way to pass user information is to use session param : session["username"], session["profile"]... hope it will help TG