Where are the sessi...
 
Notifications
Clear all

Where are the session variables stored?

5 Posts
3 Users
0 Reactions
1,255 Views
(@gokugirl)
Posts: 60
Trusted Member
Topic starter
 

URL to your eFiction: http://dbfl.gokugirl.com
Version of eFiction: 3.4.3
Have you bridged eFiction, if so with what?: No
Version of PHP: 4.4.7
Version of MySQL: 5.8.8
Have you searched for your problem: yes
If so, what terms did you try: can't register, can't login
State the nature of your problem: Session variables aren't being saved
Do you have a test account for us? No

I have a problem with storing session variables for all four of my 3.0 archives (one is a test archive and the other two share an authors table). No one can register, no one can submit stories, and no one can escape being stuck in an infinite age consent loop. Sometimes things work in IE7, however, after I clear the cache.

It started happening around the same time I upgraded to the newest version of eFiction so I thought that was the cause. After searching the forum and constantly seeing Tammy's responses to the people having similar problems, I wondered if it was my host. I searched their knowledgebase and discovered that you now need to add something in order to use sessions.

To run PHP sessions, include the following code at the top of any PHP script that uses sessions:

session_save_path("your home directory path"/cgi-bin/tmp);
session_start();

I inserted this into header.php after inserting my path and it didn't work. I removed "session_start();" since it's used later and that didn't work. Now I'm starting to think that I need to change the save path to the one eFiction uses but I can't find it anywhere.


- My eFiction Skins: http://www.gokugirl.com/efiction.php
- The Otaku Institute: http://oi.gokugirl.com
- The OI Same-Sex Archive: http://oisa.gokugirl.com
- The Dragon Ball Fanfiction Library: http://dbfl.gokugirl.com

 
Posted : 12/10/2008 5:48 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

http://uk3.php.net/session/

I think it's something you mayl have to contact your host personally about.


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 12/10/2008 6:03 pm
(@gokugirl)
Posts: 60
Trusted Member
Topic starter
 

Thanks for replying. I'll just send them the log of all the session-related errors and there are definitely a lot of them.


- My eFiction Skins: http://www.gokugirl.com/efiction.php
- The Otaku Institute: http://oi.gokugirl.com
- The OI Same-Sex Archive: http://oisa.gokugirl.com
- The Dragon Ball Fanfiction Library: http://dbfl.gokugirl.com

 
Posted : 13/10/2008 7:46 pm
(@tammy)
Posts: 2577
Member Moderator
 

session_start is called in header.php on line 56.  You need it above that.  I would guess you probably didn't get the path right.


 
Posted : 14/10/2008 1:08 am
(@gokugirl)
Posts: 60
Trusted Member
Topic starter
 

It was a server problem. The session save path wasn't set. Everything is finally working correctly again.


- My eFiction Skins: http://www.gokugirl.com/efiction.php
- The Otaku Institute: http://oi.gokugirl.com
- The OI Same-Sex Archive: http://oisa.gokugirl.com
- The Dragon Ball Fanfiction Library: http://dbfl.gokugirl.com

 
Posted : 15/10/2008 1:06 am
Share: