Logout function

Logout function redirecting to login page

Page 1 of 1

4 Replies - 11445 Views - Last Post: 10 February 2009 - 07:45 PM

#1 sirishapnl  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 03-February 09

Logout function

Posted 03 February 2009 - 03:02 AM


<html>
<head>
<script type="text/javascript">
self.close(this.window);
<a href="TWeb.html"/a>
</script>
</head>
<body>
</body>
</html>




I have used the aforementioned code to validate logout function from my webpage. However, I want to redirect the user to another page (for ex: loginpage) on loggingout.

please help me further.

Attached File(s)



Is This A Good Question/Topic? 0
  • +

Replies To: Logout function

#2 saquib1992  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 31-January 09

Re: Logout function

Posted 03 February 2009 - 03:15 AM

First of all clear what u want to do.
Was This Post Helpful? 0
  • +
  • -

#3 Glorfindal  Icon User is offline

  • Java Enthusiast
  • member icon

Reputation: 23
  • View blog
  • Posts: 535
  • Joined: 31-December 08

Re: Logout function

Posted 10 February 2009 - 05:13 PM

Oh, that's easy! <meta http-equiv='refresh' content='2; url=http://www.yoursite.com' /> Also Content='2; Is the amount of seconds before it redirects you.
Was This Post Helpful? 0
  • +
  • -

#4 BetaWar  Icon User is online

  • #include "soul.h"
  • member icon

Reputation: 1105
  • View blog
  • Posts: 6,918
  • Joined: 07-September 06

Re: Logout function

Posted 10 February 2009 - 05:18 PM

Or you could use the java script:
window.location = "http://www.example.com";

Was This Post Helpful? 0
  • +
  • -

#5 Glorfindal  Icon User is offline

  • Java Enthusiast
  • member icon

Reputation: 23
  • View blog
  • Posts: 535
  • Joined: 31-December 08

Re: Logout function

Posted 10 February 2009 - 07:45 PM

The redirecting is used on a lot of boards, in fact I think this one uses it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1