Wedge

Public area => The Pub => Features => Topic started by: Nao on February 3rd, 2014, 07:10 PM

Title: What's the purpose of non-database sessions?
Post by: Nao on February 3rd, 2014, 07:10 PM
I think I've got the hang of manipulating sessions in database fields (I had to do that in order to implement session-based caching :P), but now I'm playing with non-database sessions, and having problems, namely my sessions are automatically regenerated every X seconds, making it impossible for me to connect to my test admin area, lol.

I was getting started on fixing this, when suddenly it hit me... What's the point?! If this bug wasn't found before, maybe that's because no one ever uses file-based sessions.

I'm tempted to just remove the feature, which will make one line less to read at install time. What do you think, guys..?
Title: Re: What's the purpose of non-database sessions?
Post by: Pandos on February 3rd, 2014, 07:21 PM
I'm using file based sessions and I'm very happy with it.
If you've got a big board, db sessions are a real bottleneck for performance if you stuck on MyISAM tables :)
And it's ways faster....

Title: Re: What's the purpose of non-database sessions?
Post by: Pandos on February 3rd, 2014, 07:24 PM
Quote from Nao on February 3rd, 2014, 07:10 PM
I was getting started on fixing this, when suddenly it hit me... What's the point?! If this bug wasn't found before, maybe that's because no one ever uses file-based sessions.
Never happend to me.
Quote
I'm tempted to just remove the feature, which will make one line less to read at install time. What do you think, guys..?
NO!
Title: Re: What's the purpose of non-database sessions?
Post by: Nao on February 3rd, 2014, 07:26 PM
Which is why I asked before removing... :P
Title: Re: What's the purpose of non-database sessions?
Post by: Pandos on February 3rd, 2014, 07:28 PM
That's mighty white of you :)
Title: Re: What's the purpose of non-database sessions?
Post by: Nao on February 3rd, 2014, 07:29 PM
Still, bug there for me... :(
Title: Re: What's the purpose of non-database sessions?
Post by: Pandos on February 3rd, 2014, 07:33 PM
Have you tried to change the session settings in your php.ini to files or memcached or....?
Also the session_save_path?
Title: Re: What's the purpose of non-database sessions?
Post by: Pandos on February 3rd, 2014, 07:42 PM
Or is it related to this bug?:
https://confluence.atlassian.com/display/JIRAKB/Session+Abort+Errors+or+Users+Log+in+as+Incorrect+User+due+to+Apache
Title: Re: What's the purpose of non-database sessions?
Post by: Nao on February 4th, 2014, 09:40 AM
Oh, forgot to update on my case...

It actually worked again after I restarted Apache. (I forgot to do that.)
Was probably an issue with tmp permissions, then. It was read-only. I'm not sure why it managed to create session files but still bothered me with problems, but anyway... Solved.
Title: Re: What's the purpose of non-database sessions?
Post by: MultiformeIngegno on February 4th, 2014, 10:18 AM
Ah Apache apache.... nginx will definitely kill you at some point :P
Title: Re: What's the purpose of non-database sessions?
Post by: Nao on February 4th, 2014, 10:21 AM
Let's not get ahead of ourselves... I want Wedge to work fine on LAMP and WAMP first, then we'll see about the rest... :P