Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

If a user clicks on a link and then is redirected to a login page, once they login, how do you redirect them to the page they were initially requesting?

 

response.redirect("??????")

 

Thanks

Posted

how about just storing the page they came from in a session variable like

session("lastpage") = request.currentexecutionfilepath

 

and then after a successful login just return them to that page

 

Server.Transfer(Session("lastpage"))

You can not get ye flask.
Posted

Of course you can do that, but since Session (server) will use more resource, normally people use it when login success. It is also depend on your environment.

 

If Cookies is allows in Client site, then try to avoid using server Session.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...