
7stud
Enthusiast
Apr 13, 2010, 12:14 PM
Post #7 of 20
(1572 views)
|
|
Re: [demon01] Timing out a session
[In reply to]
|
Can't Post
|
|
What do you mean when you say 'server login'? If we are talking about cgi scripts, then a user enters a url in their browser, and then your script presents them with an html page or an html form. Your html form can have any form fields you want on it, like two fields for a username and password. There is no logging into anything. There is just a couple of form fields and a script of yours that decides what to do with those form fields. Logging onto a server is something you do to upload files to your webhost's server, and it has nothing to do with cgi. You are given an account by your webhost, and the server has some software that processes your username and password. Now, if you are talking about web pages, then you can do this with sessions:
$s = CGI::Session->load() or die CGI::Session->errstr(); if ( $s->is_expired ) { #display login form }
(This post was edited by 7stud on Apr 13, 2010, 12:33 PM)
|