CodeIgniter Forums
Agent Referrer when using redirect - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Agent Referrer when using redirect (/showthread.php?tid=4781)



Agent Referrer when using redirect - El Forum - 12-15-2007

[eluser]gRoberts[/eluser]
Hey all,

I've got a login page that it redirects you to the page that you came from, but this only seems to work if you click on a link.

For example, on my category add function, I check if the user is logged in. If not I redirect to the login page. Normally you'd expect this to say that the referring url was the page you were trying to access but it doesn't want to know.

Any idea's??

Cheers

Gav