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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jump to another page and preserve session variables

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
Hi,

I am having trouble either creating or deleting session variables if I then use a Response.Redirect to another page.

There seem to be a number of articles saying don't do this but don't offer any alternatives.

The only thing I can think of is to have a link on the page that someone clicks on after their log in has been successful. Ideally I would want to jump to the next page automatically though.

I am using classic ASP by the way so something like

Response.Redirect("nextpage.asp", False)

causes an error.

Thanks

Ed
 
Hi,

After further testing I have found that it is a browser related issue. It works fine on one PC but not another. I have tried enabling session cookies but that makes no difference.

If I can't get session variables to work properly what is the next best option for determining whether a user is logged in to the site or not?

cheers

Ed
 
If I can't get session variables to work properly what is the next best option for determining whether a user is logged in to the site or not?

You could put something in the querystring. It could be somethng oblique like an MD5 hash of some value that would let you know they are logged in but would make no sense to anyone else... sorta like is often used with web mail.
 
Good news!

I spoke to my hosting company (EasySpace) and they told me they have moved my domain to the "Application Session Pool" and that has now fixed the problem.

Thanks though I think I will still use MD5 hashing for passwords in the database though.

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top