Where to store the return url in a login form/controller

PQracheal

New Member
I am wondering how to best deal with a return url in a login form. I think a good way is probably how it is done here. That is to urlencode the current url and send it as a get parameter to the login controller.This can then be urldecoded in the login controller. But what then? I looked at the StackOverflow login page, and I couldn't find that url anywhere. Where is it stored? How does it know where to go when the login is done? Is it stored in a cookie? Session variable? Or something else?I guess things can be done a bit differently than in PHP, but anyways. What is a good way to do this?
 
Back
Top