Results 1 to 2 of 2

Thread: Need help with Perl Session tracking

  1. #1
    Join Date
    Mar 2008
    Posts
    5

    Need help with Perl Session tracking

    I'm just starting to learn perl and was wondering how to get started with session tracking. All I want to do is have a simple session variable that tells the time of the last visit to a page. How do I declare a new session? Do I have to explicitly declare a cookie? After that, how do I access the variables in the cookie? I have only done this in Java which has a built in session variable.

  2. #2
    Join Date
    Mar 2008
    Posts
    5
    Ok, so I figured out a little bit about using cookies but I'm still wondering how to assign multiple variables to a single cookie.
    The syntax I'm currently using is:

    $value = cookie('last_visit');
    $some_cookie=cookie(-name => 'last_visit',
    -value => $some value,
    -expires => '+1y');

    any suggestions?

Similar Threads

  1. loss of session variable
    By numbenator in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 22 Sep 2005, 08:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •