Hi all,

I am totally pulling my hair out at the moment. The pages I have included sessions on all work great except when I make submit a form or basically anything I do in relation to MySQL. Is there a typical reason as to why this would happen?

So weird!!!

Thanks in advance to anyone with some insight.

Recommended Answers

All 3 Replies

I can't (of the top of my head) think of anything that would cause that. You must be doing something wrong with the session (e.g. closing it/clearing the variables).

Depends.

All I can think of is that perhaps that in your scripts, if they're standalone files, you haven't included 'session_start();'. Apart from that I've got no idea.

Didn't realize this thread was still open. I was able to solve the problem. My host had Registered Globals on by default. I turned it off and no more session issues.

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.