Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: what is the best session module to use?

by Unforgiven (Hermit)
on Nov 03, 2009 at 13:55 UTC ( #804689=note: print w/replies, xml ) Need Help??

in reply to what is the best session module to use?

Do you really need to use a database as the backend? For example, if it's just a single server, ditch all that overhead, and use something simpler like plain old CGI::Session.

If you do, maybe something like memcached would be better? Remember, it's just a session, which is essentially just a key-value store anyway.

  • Comment on Re: what is the best session module to use?

Replies are listed 'Best First'.
Re^2: what is the best session module to use?
by Anonymous Monk on Nov 04, 2009 at 11:50 UTC
    Well, we have over 60k members so the sessions are necessary to be quick and efficient, to store information such as keys, usernames, session data such as preferences for that session and so forth.

    Can text sessions do the same thing? Are they faster than database sessions?
      I haven't used a database backend for sessions, so I couldn't honestly say, but I'd certainly try it. Think of the overhead of using a RDBMS, as opposed to a simpler method. I could be wrong, but I think it's at least worth considering. And if you need something accessible by multiple machines, like I mentioned, there's memcached, which is designed for this sort of thing to begin with (and easy to set up, too, based on my brief experimentation with it). On the other hand, if it turns out that I'm wrong or if someone else knows better, feel free to tell me, too.
        Yeah, I read that whole page on memcached and it looks really good, however, it seems that if you do a lot of updating the table, which we do a whole lot of because of the websites user activity, it may not be a good fit, also it talks about servers with a HUGE resource like 32+ Gigs, we have maybe like 8 to 10 gigs, I know it says we can limit it to like 3 gigs, so that may not be bad, but I don't know if it would be good or not, YET...

        I am still interested how others use session management for a lot of page views and members logging in and doing a lot of activity, such as purchases, viewing invoices, requesting commisssions, viewing their commission accounts, signing up referals and many many other things.

        Thank you,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://804689]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2020-10-22 06:40 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (225 votes). Check out past polls.