Welcome Guest, Not a member yet? Register   Sign In
Storing a request URL
#4

[eluser]WanWizard[/eluser]
Argee, although the complex option is the safer option: if you keep it server side, you don't have a problem with brower plugins or proxies filtering the REFERER.

One option is to extend the session library:
Code:
class MY_Session extend Session
{
    function MY_Session()
    {
        parent::Session();
    }

    function sess_write()
    {
        $this->userdata['referer'] = current_url();   // assumes you have the url helper loaded

        parent::sess_write();
    }
}


Messages In This Thread
Storing a request URL - by El Forum - 07-24-2010, 10:36 AM
Storing a request URL - by El Forum - 07-24-2010, 11:11 AM
Storing a request URL - by El Forum - 07-24-2010, 11:20 AM
Storing a request URL - by El Forum - 07-24-2010, 11:24 AM
Storing a request URL - by El Forum - 07-24-2010, 12:21 PM
Storing a request URL - by El Forum - 07-24-2010, 12:28 PM
Storing a request URL - by El Forum - 07-24-2010, 12:34 PM
Storing a request URL - by El Forum - 07-24-2010, 03:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB