>- see footer for list info -<
well, they wont actually get logged out from the page until they perform an
action i.e. click on something?
So you could have in application.cfm or a global file some code like this:


if(not structkeyexists(session,"user")){
        session.user = createobject("component","myapp.user").init();
        session.urls = createobject("component","myapp.url").init()
}

if(not session.user.loggedin()){
        session.urls.setAction("afterlogin",cgi.script_name);
}

then in login.cfm:

if(session.user.loggedin()){
        goto = session.urls.getAction("afterlogin");
        if(len(goto)){
                location url="#goto#"
        }
}




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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 -<

Reply via email to