Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: delete users

by DaWolf (Curate)
on Dec 06, 2004 at 13:21 UTC ( #412646=note: print w/replies, xml ) Need Help??


in reply to Re^2: delete users
in thread delete users

True, bradcathey, but don't forget that the user can disable cookies and then this guy will have a problem =:c)

Regards,

Replies are listed 'Best First'.
Re^4: delete users
by bradcathey (Prior) on Dec 06, 2004 at 17:10 UTC

    True facts. But usually log-in/out scenerios used are in a controlled environment, and it can simply be stated that for access to the system, cookies must be enabled (like so many websites). In fact, there are lots of sites that don't work properly, be it good or bad, with Java-the-Script turned off.

    I would like to see your commands for the cron job. Thanks.


    —Brad
    "Don't ever take a fence down until you know the reason it was put up." G. K. Chesterton
      Hi.

      First of all, sorry for the delay. Actually I've made a cron entry that simply calls a script that does the following query (note that the RDBMS is PostGreSQL, so I don't know if this query will run smoothly on any RDBMS):
      SELECT SESSION_ID FROM SESSION_ACTIVITY WHERE DT = current_date AND HR < current_time - interval '30 minutes'
      This brings the ID's of the expired sessions (in this case those idle for 30 minutes or more), so I can delete them from the database. What happens next is that when the user decides to click another link or something like that, each page checks if the session is still on the database. Since it's not, the user is automatically redirected to the login page with a message telling him his session has expired.

      Regards,

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://412646]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2021-04-15 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?