Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with session variables

Status
Not open for further replies.

dataplayer

Programmer
Jan 11, 2003
95
US

I am using DreamWeaver for ASP pages and are using session variables. But I got problem with it. The session variables on a login page are all correct. The program then goes to a form page to display and collect info. After the form is submitted, on the following page, all the session variables are null or empty. The funny thing is that sometimes I did get the right values. Does any know what is going on with this problem and any other way around it? Thanks.
 
I think we need to see some code. Unless your session has timed out or you explicitly abandoned it your variables should be there. Is this behavior happening on a specific machine. Is the browser set up to accept cookies?
 
In the login page, the assignments are:

Session("ID") = Request.Form("ID")
Session("Password") = Request.Form("Password")

which I can't see any problem. afterwards, the program is redirected to the following page that has a suspicious heading as follows:

<%
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"

...blah blah. There is no abandon command in this page. Nothing touch these two session variables in this page. It is form page. After the form is submitted, the prgram goes to the 2nd page, where i found Session("ID") and Session("Password") are all null. There is no abandon command in this page too.

The interval for form submitting is real short (a few seconds). It still has the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top