>- 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#"
        }
}

_______________________________________________

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