且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

登录重定向用户上的ASP成员身份将用户重定向到通过电子邮件发送的链接

更新时间:2023-02-26 08:58:05

多种方式之一:
1.当您的问题步骤1发生时,在View.aspx的页面加载中,检查登录的会话值.
-如果不为null,则显示页面.
-如果为null,则将当前URL保存在一个会话中(将其命名为browserdURLSession),然后重定向到登录页面.
2.用户登录后,将usser配置文件保存在会话中或维护登录的会话,以便您可以标识该用户已登录.
3.检查浏览的URL会话值(browsedURLSession),如果为null,则显示主页.如果其中包含一些网址,请重定向到该网址.

试试吧!
One of various ways:
1. When your question step 1 happens, in the page load of View.aspx, check for the logged-in session value.
- If it is not null then show the page.
- If it is null then, save the current URL in a session (call it browsedURLSession) and then redirect to login page.
2. Once the user logs in, save the usser profile in session or maintain the logged in session such that you can identify that user is logged in.
3. Check for browsed URL session value (browsedURLSession), if it''s null show the home page. If it holds some url, redirect to that one.

Try!