Welcome Guest, Not a member yet? Register   Sign In
Need to authenticate an user and redirect him to the requested page: possible?
#4

[eluser]Ki[/eluser]
Glad to help.
I used something like this for one of my solutions where I had one section that displayed list of locations and changed the user location. But after that change, I wanted to be able to send the user back to the page where he/she came from to change the location specification. So, from every link, leading to the location change page, I added redirect clause. Example (/map/view/redirect/products/category/1). Now withing my map controller view method I had something like
function view($redirect == FALSE){
if($redurect != FALSE)
// find "/redirect/" in uri string and get everything after it with substr(). This becomes your return/redirect URI

}


Messages In This Thread
Need to authenticate an user and redirect him to the requested page: possible? - by El Forum - 10-01-2010, 06:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB