FAQ
Hoi list,

at the moment I'm working on the session management. It works very well
and I like the idea from the udat hash. But I've noticed some strange
behaviors. Everytime I'm checking if a user is logged in the system
creates a new session id in the database and I muss delete with
tied(%udat)->delete; I though a new session id will just be created when
I put some stuff in the udat-hash. Can I avoid this behavior?

I would like a user only log in once, if a user logs in twice I will be
able to delete the old session id. Is there a way I can verify this?

Thanks in advance

greets
cit

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org

Search Discussions

  • Gerald Richter at Mar 27, 2006 at 6:56 pm

    at the moment I'm working on the session management. It works
    very well and I like the idea from the udat hash. But I've
    noticed some strange behaviors. Everytime I'm checking if a
    user is logged in the system creates a new session id in the
    database and I muss delete with tied(%udat)->delete; I though
    a new session id will just be created when I put some stuff
    in the udat-hash. Can I avoid this behavior?

    I would like a user only log in once, if a user logs in twice
    I will be able to delete the old session id. Is there a way I
    can verify this?
    The session id is stored in a cookie, so if a user comes to your site
    without a cookie and you are using %udat, Embperl will create a new session.
    Embperl cannot know that this is the same user.

    You have store the session id of the user somewhere and is the users logs in
    the second time you can retrieve the old session id and delete it.

    Gerald



    ** Virus checked by BB-5000 Mailfilter **


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
    For additional commands, e-mail: embperl-help@perl.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupembperl @
categoriesmodperl, perl
postedMar 24, '06 at 11:20a
activeMar 27, '06 at 6:56p
posts2
users2
websiteperl.apache.org

People

Translate

site design / logo © 2022 Grokbase