rejetto forum
May 26, 2012, 12:40:12 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: LogOut?  (Read 653 times)
0 Members and 2 Guests are viewing this topic.
Denis
Regular poster
**
Offline Offline

Denmark Denmark

Posts: 25


View Profile
« on: May 25, 2011, 02:06:28 PM »

I was reading all the posts about how to logout, and get a idea!
I'm using rawr template with pswd-change and every time you change your password and then redirect back to the previous hfs folder, you have to login again, couse you changed the password.
Now the question is:
Is it possible to make a logout button, that when you click on it, it just change the user password to "default"(or something random) and then it will ask for the login again, couse the user changed the password, and a few secounds later it change back to the old. So the browser will ask for the new login and then instead of enter the new password, you just login as a new user.

Is that possible or could you just open the user account again by refreshing(couse it change the password back again), or would the browser forget couse it failed?



Or would it be possible to make like a javascript which delete the browser information, cookies or anything else witch remember the password.



Hope that im not sound like a idiot. But there must be a way to do it. And last, could someone post a javascript that close the browser, i have that script but could someone tell where to paste it in the rawr template.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: May 26, 2011, 05:33:48 AM »

yes, it's technically possible, through the scripting language.
anyway i'm working on a totally different authentication system, that will have not this problem at all.
Logged
Denis
Regular poster
**
Offline Offline

Denmark Denmark

Posts: 25


View Profile
« Reply #2 on: May 30, 2011, 07:43:20 AM »

But where to place the "javascript:window.close()" script and did i have the right script?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #3 on: June 01, 2011, 08:57:29 AM »

you can turn it in a button, something like
<button type='button' onclick='window.close()'>CLOSE</button>  
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 19, 2012, 10:08:18 AM
anything