W
Wagner
Hello,
I created web application protected by Forms Authentication.
I'll describe it in short:
User logs in, variable Application("LastAccessTime" & UserId) is written to
Application State then is retrieved aspx page with client-side script which
pools web service every x seconds (protected by the same security) and
displays retrieved xml data using dhtml.
With every web service request Application("LastAccessTime" & UserId) is
changed to current time.
If there is no request for 30 seconds user is considered logged out, web
service won't respond with data and user can (must) login again with the
same username.
Variable "UserId" is stored in Session object.
Anybody who would try to login again with same username would be rejected
since Application("LastAccessTime" & UserId) has current time meaning the
user is active.
After timeout period of 30 seconds username is again available.
I created this solution but it is not robust enough since variables stored
in Session and Application are frequently lost on ISP's web server.
Is there any better and more stable solution?
I created web application protected by Forms Authentication.
I'll describe it in short:
User logs in, variable Application("LastAccessTime" & UserId) is written to
Application State then is retrieved aspx page with client-side script which
pools web service every x seconds (protected by the same security) and
displays retrieved xml data using dhtml.
With every web service request Application("LastAccessTime" & UserId) is
changed to current time.
If there is no request for 30 seconds user is considered logged out, web
service won't respond with data and user can (must) login again with the
same username.
Variable "UserId" is stored in Session object.
Anybody who would try to login again with same username would be rejected
since Application("LastAccessTime" & UserId) has current time meaning the
user is active.
After timeout period of 30 seconds username is again available.
I created this solution but it is not robust enough since variables stored
in Session and Application are frequently lost on ISP's web server.
Is there any better and more stable solution?