Logging out user

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
webtekie
New php-forum User
New php-forum User
Posts: 9
Joined: Thu Apr 10, 2003 10:33 am
Location: brooklyn, ny
Contact:

Fri Apr 18, 2003 5:38 am

Hi,

How should I logout user once he closes browser? Is there any way other than creating a framed version of web page and using javascript or using cookies. Let's say I am using $_SESSION object.

/webtekie

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Fri Apr 18, 2003 7:30 pm

There is one way put onUnload('windowOpen();')
Open a window which executes a small script
session_destroy();

I hope this would work

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests