Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Login/Logout

by nite_man (Deacon)
on Jan 13, 2005 at 12:39 UTC ( [id://421949]=note: print w/replies, xml ) Need Help??


in reply to Login/Logout

If I understood clearly you need to restrict access to some web pages. So, first you can use Apache features for that: Authentication, Authorization and Access Control.

Second way is using sessions. Have a look Apache::Session or CGI::Session. Also, there are good CGI::Session Tutorial and CGI::Session CookBook.

---
Michael Stepanov aka nite_man

It's only my opinion and it doesn't have pretensions of absoluteness!

Replies are listed 'Best First'.
Re^2: Login/Logout
by Anonymous Monk on Mar 30, 2016 at 14:18 UTC

    Logging out seem difficult. I could stay logged in for eternity?

      The common approach is to have a timeout/end date and/or a date of last contact stored in your session. If the timeout or date of last contact is too long ago, the session is considered invalid and you need to enter your password again.

      Many thanks, Connon, I will comply. Actually I'm 'beewarb' not registered, {but I thought I was!} beewarb

Re^2: Login/Logout
by titanic_fanataic (Acolyte) on Jan 13, 2005 at 21:27 UTC
    I would love to use these methods, but unfortunately, I don't have access to any of these mods on my server. I would have to use either cookies or hidden form feilds. In this case I believe that it would be wise to use cookies... Could someone point me in the right direction for a turorial on this...

    Thanks,
    Tylor

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-18 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found