Link Details

Link 47115 thumbnail
User 225256 avatar

By mswatcher
via weblogs.asp.net
Published: Oct 11 2007 / 13:17

Since the conception of secure pages on the internet, there has been the "Login Page" . When a user authenticates on this "Login Page" they usually get some sort of a Session set for them, and they're forwarded to a new page. When the authentication times out, or the user logs out, they get redirected to the "Login Page" (yea yea some of us might have a logout page). Now with AJAX running rampant on the web, every callback that's done needs to be authenticated to make sure the user is who they way they are. However, a
  • 6
  • 3
  • 1454
  • 560

Comments

Add your comment
User 251141 avatar

cfelde replied ago:

0 votes Vote down Vote up Reply

The problem with this is that you either have to use https all the way, since AJAX calls can suddenly use https for one request when they are using http for everything else, or you need to send the login and password over http, which isn't acceptable.

Why not just use a periodic AJAX call to update the session, if you don't want it to time out while you're at the site.

User 252430 avatar

MadACR replied ago:

0 votes Vote down Vote up Reply

This would probably work for most sites, but be aware of the AJAX components that can go south. And have a redirect method in backup. As far as worring about HTTPS, why? A blog site, has no need. And if it is a form to check out from an e-store, then use the backup method for that page, and switch to the backup.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (6)



Voters Against This Link (3)