View Single Post
  #1 (permalink)  
Old 08-03-2007, 09:15 PM
dmadance's Avatar
dmadance dmadance is offline
WebProWorld Member
 
Join Date: Jul 2003
Posts: 50
dmadance RepRank 1
Default htaccess and login

Does anyone have a good script that can create a login to a site protected by htaccess. Also does someone have a script to logout from a site protected by htaccess.

I was thinking the logout could be done with AJAX by asking for a url http://randomstring:randomstring@mysite.com and when that fails to somehow redirect to the homepage. Is this feasable? If somebody has already done this I would love the code.

I know one can do logins with "http://usernameassword@mysite.com", does anyone have a script of some sort that can take userame and password as inputs to a form, and only goes to the page if authenticated to go the protected site. I think this can be done with AJAX. I am very new to AJAX (just read AJAX in 10 minutes 10 minutes ago) so if someone out there knows this, I would appreciate the helps.
Reply With Quote