473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

about session variables losing its values before time out

I've got some ASP pages where the session variable values get blown away BEFORE
the session times out. I can't understand it. For example: if a user
logs into my ASP app using his password which is stored in a session variable,
it will be fully accessible for a few minutes and then all of a sudden.....Wham
session variable with password value is gone. And the session timeout is
far from expired. The session variable is not being touched in any way
after it gets initialized with a value.

Anyone no what could be causing this?

Thanks.
Reply With Quote
Jun 14 '10 #1
3 5053
ThatThatGuy
449 Expert 256MB
@vijay7896
Have you defined the Session variable inside global.asax
Jun 14 '10 #2
Frinavale
9,735 Expert Mod 8TB
I would re-examine your code and look for anything that updates that session variable (it is NOT a good idea to store the user's password in session).

-Frinny
Jun 14 '10 #3
Hi vijay7896

u can solve ur problem to set session timeout property in web.config file by foolowing steps.

->GO to Web.config File
->Find this tag <configuration>
->Under <configuration> u can see <system.web> tag
->in this tag u have just copy & past following line

<sessionState timeout="30"/>

->here 30 means 30 Minuts
u can change ur session time in above Line


Talha Karkun
Jun 16 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Martien van Wanrooij | last post by:
I am working on a site that will have several pages and where the user will find some investment advices. I must say that the concept of sessions/session variables is relatively new for me. What I...
1
by: Pam Downey | last post by:
How can I resolve the issue of session variables losing information with IIS 4.0 and I.E. 5.0? I changed the regsitry setting Microsoft suggests but that did not work. Thanks, Pam
4
by: Jason Us | last post by:
Does anyone have experience with passing variables from an ASP page to a JSP page. The way it currently works in passing the SSN in the URL. This cannot be good. I thought that storing a...
3
by: ACaunter | last post by:
Hi all, I'm wondering why I keep losing my session variables all the time. I've set the timeout to be an hour, but for some reason randomly i keep losing everything.. what could be causing this??...
14
by: Coleen | last post by:
Hi All :-) We have an APSX application using VB.net as the code behind, which uses one or two session variables per page. These Session variables are passed to the final page and calculations...
14
by: Martin Walke | last post by:
Hi all, Is there any limit to the number of session variables a site can have? And is that affected by global.asa at all? The reason why i ask is that i have a relatively simple site that...
3
by: kylocke | last post by:
I am running PHP 5.1.4 I am not sure what is going on, but I will try to explain it best I can. I have a few pages that personalize based on the user that logs in. It basically says "Hello, "...
2
by: DLN | last post by:
Hello all, I apologize for the naivety of this question, but I'm wondering whether session variables can ever be modified (somehow) by a client without having to go through code that I write. ...
8
by: Eddie | last post by:
I am having difficulty in setting variables in a session, and then accessing those variables throughout the web pages that they click on. After having them set a user name and password,...
1
by: Sudhakar | last post by:
i have a registration page called register.php if the data entered is validated correctly i call a file called thankyou.php or else validate.php presently a user after seeing the url...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.