开发者

ASP 3.0: I need a method to store user login other than the session variables or cookies

We have extended a legacy app, however the existing login and user management mechanism doesnt seem to work with the new module.

Our module keeps causing the user to be logged out, when they navigate back to the existing application.

We've removed all pages which might force the session to be exp开发者_开发百科ired. We have no code related to user sessions and logins We have no code that logs out the user.


Could use Database or Memcache perhaps but both are going to be messy if you can't use SessionID or similar as a key I suppose.


You are not telling by wich mechanism the server should know which user is logged on ? What are you currently using: javascript, asp pages ?

If you should be using cookies, please make sure that the domain name you use in your cookie writing and cookie writing code (especially when you are mixing javascript and asp code) is written the same (so case sensitive). If not your code might be reading another value than the one written.

I know I have been searching for a problem a long time before I found out that I wrote the cookie to domain Edelcom.be and was reading if from edelcom.be.


You should be able to use Cookies as this doesn't depend on sessions staying alive. Cookies can persist as long as you want them to - you just need to set the "expires" value.

It sounds like you are actually wanting to get rid of session variables for logins but this should not mean you have to also ditch cookies.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜