Hello there...

I've been kicking around ideas of how to keep a user's session 'alive' once
they get logged in on a site. The scenario is a common one...

An admin logs into the backend tools to add something.
They sit on a form typing in a long, long news article or something 
When they are finally done an hour later, they go to submit it and their
session has died and they have to log in again... then all the info they
entered is gone and I get yelled at. :)

I do NOT want to use cookies on these sections so I need something to keep
hitting a page (really any page I guess) in the background to keep the
session alive as long as their browser is open.

I thought about a frame with a meta refreshed page in it but that’s not very
creative :)

I thought about a tiny swf to do basically the same thing... that’s a little
better I guess.

And I thought about a JS routine to occasionally fire itself based on a
timer to do an httprequest to another page that will:
Check the session (if it's still active, that would reset its timeout
right?)
If it's active, return "active" or whatever.
If it's inactive, pass along the encrypted login info to log them back in
and return "active" 
If for any reason the session is dead and cant be reset, return "inactive"
so a hidden div or JS alert can inform them to at least copy what they have
written in the field so they don’t lose it because they are going to have to
log in again.

If the user ever got to the page, their session was active and valid so any
login info could be ported from the session scope the variables scope on
that page and used anytime I wanted. (like for logging them back in)

I obviously like the last 'idea' better due to the elaboration :) but wanted
to know what others thought about it or if you guys and gals had another
solution I haven’t thought of. (short of turning the session timeout up to
some ridiculous amount of time)

 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 11/30/2005
 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225845
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to