>- see footer for list info -< We have used a javascript timer to refresh to a warning page before now which sends the URL of the page the user was on to the warning page, this is then stored in the db as part of the call to the warning page. This means not every page is required to submit to the DB.
Lee Fortnam [EMAIL PROTECTED] t: +44 121 7091857 m: +44 7976 752137 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Snake Sent: 26 August 2005 09:51 To: 'Coldfusion Development' Subject: RE: [CF-Dev] Can anyone help me withthis please >- see footer for list info -< If you are using client variables, then these will be persistent after logout and regardless of server reboots etc, presuming you don't delete them all after logout. So when someone logs out, you can store their last page in a client variable. When they next login, redirect them to the URL stored in that variable. If you are not using client variables, then you can use cookies, but this of course may get deleted. Best to store the URL in the database when they logout and retrieve it after they login. The trick is getting the last page. You cannot rely on http_referer, so you would need to send the last url to the logout page. You could do this by appending the following to all links. #UrlEncodedFormat("#script_name#?#query_string#")# CFDeveloper Coldfusion Developer Community Russ Michaels [EMAIL PROTECTED] www.cfdeveloper.co.uk -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Swingewood Sent: 26 August 2005 08:13 To: [email protected] Subject: [CF-Dev] Can anyone help me withthis please >- see footer for list info -< I have an application and the client has asked for the following... "Modify current system login to return the user to the page they were last looking at when logged out and re login" What they are asking for is when the application variable times out and the user is logged out at present they are sent to the login page and then after successful login they are sent to the default page. How can I return the user to the page they were last looking at? I think this is a job for a cookie. The problem is not all of our users allow cookies. So. are cookies the best way to go? Is there some facility in CF that I can use to do this? IS this best done by writing something to the database to track the page the user is looking at? (sounds unecconomical this ..) Any ideas code snippets? Regards - Paul _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help >-< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help >-< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
