in reply to CGI::Session - non-stop session creation problem
1. A user enters your website;
2. Check if $session->param("name") exists; IF exists is a privileged user ELSE is a visitor;
3. If is a visitor create a (normal) session variable and store a cookie;
4. If visitor logs in, you need to add a session variable, like, for example:
and the visitor 'upgrades' to 'privileged user'.$session->param("name", $cgi->param("name"));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI::Session - non-stop session creation problem
by Stenyj (Beadle) on Apr 07, 2005 at 02:51 UTC | |
by Tanktalus (Canon) on Apr 07, 2005 at 04:03 UTC | |
by Stenyj (Beadle) on Apr 07, 2005 at 04:52 UTC | |
by Tanktalus (Canon) on Apr 07, 2005 at 16:49 UTC | |
by ikegami (Patriarch) on Apr 08, 2005 at 05:58 UTC | |
by Stenyj (Beadle) on Apr 07, 2005 at 22:28 UTC |