• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Using the XenForo Sessions instead of PHP sessions

Jake B.

Well-known member
#1
Currently I'm using the normal PHP sessions for one specific use in the UI.X add-on, I've looked through trying to figure out how to use XenForo sessions, but everything I've tried hasn't worked. I need to switch from using PHP's sessions because it is not working on servers with FastCGI enabled.

Thanks,

Jake
 

Jake B.

Well-known member
#3
What have you tried?
Don't quite remember now, I gave up and switched to php's sessions, didn't realize it wouldn't work with some people until it was pointed out to me yesterday.

What happens when it doesn't work?
Nothing happened

What exactly are you trying to do?
Temporarily store data (such as name of the style, product ID, etc) for the next few page loads (usually through the template rebuild process) as it installs the styles.

Also, you're quick with your replies in this section. It's greatly appreciated!
 

Chris D

XenForo developer
Staff member
#4
Using XenForo sessions should be fine for that.

Have another go, then if it doesn't work share some of the code so we can see where it might be going wrong.