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!

Reinitializing sessionid

Status
Not open for further replies.
Feb 15, 2002
3
GB
I am having trouble with my session variables.

I have an application.cfm in the root directory of my application with session management enabled. However, I have just implemented a logout option which has confused matters. I have a function to clear out all session variables which seems to work. The problem comes when you try to log back in again - it doesn't seem to reinitialize the session variable and keeps throwing up an error.

Any ideas would be welcome as I am completely stuck and fairly new to this game.

Thanks.

Jo
 
Hi

What error do you get? How are you clearing the session values by destroying the session variables or just clearing the values?
 
I was using StructClear to delete the session variables. The error message I got stated that session.sessionid had not been defined or that I had spelt it wrongly.

I have got round this by deleting individual session variables using structdelete instead. Obviously this isn't quite as good, but I think it will do the trick.

Thanks for taking the time to look at this.

Jo
 
Just a thought. You can always create a session variable for every user then set it to either logged in or logged out everytime they login/logout without having to delete each session. If the site is extremley busy this may eat up ram!


Kola
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top