Yes, it is a little complex. The FRHWebDB::Session is my module, I learned it from the book "Perl and MySQL for the web" by Paul DuBois.

I actually have the session untie, ONLY when the user clicks logout, which is pg=quit.

The code is this:
if ($in{pg} eq "quit" && defined($sess_ref)) {
    if ($sess_ref->attr ("remember_me") == 1) {
        $sess_ref->attr ("loggedin", 0);#just change it to 0
        $message = qq~You have been Logged Out$nname_ws!

~;#$nname_ws is their nickname with a # space in front of it, if no nick name then it's blank # (Out!) } else { Delete_Session_Forever($sess_ref); } } Here is the code in data.conf for the Delete_Session_Forever()... sub Delete_Session_Forever { $sess_ref = shift; $sess_ref->delete(); # Destroy session for good # Create cookie that tells browser to destroy the one it's storing $cookie = cookie (-name => "session_id", -value => $sess_ref->session_id(), -path => url (-absolute => 1), -expires => "-1d"); # Expire Yesterday $loggedin = 0; $sess_ref->attr ("loggedin", 0); $message = qq~You have been Logged Out<br>AND<br>Your Session Has been Deleted!<br><br>~; }

That is pretty much when it tells it to quit.

If you need to see the FRHWebDB::Session code let me know, I'll post it.

Thank you!
Richard

In reply to Re: Please help me... Apache::Session::MySQL by powerhouse
in thread Please help me... Apache::Session::MySQL by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.