通过 url 点击验证会话
我使用的系统会向用户发送一封电子邮件,以允许他们查看票证页面。如果用户尚未登录,数据库会要求登录,但也会询问用户是否登录。我正在寻找一种方法来验证用户是否已经登录到应用程序,并且不需要他们每次打开新网址时都重新登录。
The system that I work with sends an email to the users to allow them to view a ticket page. The database asks for a log in if the user hasn't signed in yet, however, it also asks if they are. I am looking for a way for validating that the user is already signed into the application and not require them to sign back in every time that open a new url.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的意思是他们打开了浏览器并且在您向他们发送电子邮件时他们已通过 Apex 身份验证?
Do you mean that they have a browser open and they are authenticated to Apex at the time you send them the email?
在 OTN Application Express 论坛中偶然发现了该主题。那里的解决方案似乎可以满足您的需求! APEX 4.1 登录页面终止现有会话 cookie
它会查找现有的 cookie,检查会话 ID,然后允许恢复您的会话!
不过,请注意:关闭浏览器会杀死 cookie,因此如果您的用户这样做,您需要教他们不要这样做。
Stumbled upon this thread in the OTN Application Express forums. The solution there seems to be a fix for what you need! APEX 4.1 Login page kills existing session cookie
It looks for an existing cookie, checks session ids, and then allows resuming your session!
Still, watch out: closing the browser kills the cookies, so if your users do this, you'll need to teach them not to do so.