Hey,

I have 2 scripts, one processes an ajax request and sets a session in that script but I cant seem to get the session to work in another script... (echo the session out) on the same server just a different file?

Can anyone help?

Dan

Member Avatar for diafol

uou have session_start() at the top of each file I take it, even the ajax one?

The session_start() is in the top of the config file thats included on each page, does it not error is your trying to set a session and its not included... the script doent error at all...

Dan

Sorry!, it appears adding session_start(); again seems to have worked!

Thanks again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.