This topic was marked solved by its starter, on February 4th, 2014, 09:40 AM

Nao

  • Dadman with a boy
  • Posts: 16,063
What's the purpose of non-database sessions?
« 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..?

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: What's the purpose of non-database sessions?
« Reply #1, 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....

Re: What's the purpose of non-database sessions?
« Reply #2, 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!
# dpkg-reconfigure brain
error: brain is not installed or configured

Nao

  • Dadman with a boy
  • Posts: 16,063

Pandos

  • Living on the edge of Wedge
  • Posts: 635

Nao

  • Dadman with a boy
  • Posts: 16,063

Pandos

  • Living on the edge of Wedge
  • Posts: 635

Nao

  • Dadman with a boy
  • Posts: 16,063
Re: What's the purpose of non-database sessions?
« Reply #8, 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.

MultiformeIngegno

  • Posts: 1,337

Nao

  • Dadman with a boy
  • Posts: 16,063