Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Delete expired token?

Codes here !

Moderators: macek, egami, gesf

Delete expired token?

Postby billygoatkaraoke » Sat May 12, 2012 8:43 am

Hi

I have a basic authorization system set up for my AIR desktop program that works with my website.

When the user logs on via the program, among other details, a token and expiry timestamp get saved in a table.

I was wondering if someone could please give me a quick overview of the process for deleting the token when the session ends ie the user closes the program, so that I don't have a whole bunch of obsolete rows in the database? How do you do that since closing the program renders the php script closed too?

Thanks guys.
billygoatkaraoke
New php-forum User
New php-forum User
 
Posts: 91
Joined: Sat Aug 13, 2011 7:20 pm

Return to mySQL & php coding

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.