Hi,

I have index.php on root.
Session register using $_session

and redirected to abc/demo.php

session not working in directories .

but on this location abc/demo.php session not working.

is that any setting in php.ini or anything?

Same thing working on local(xampp) but on working on live server.

How to solve this?

Recommended Answers

All 4 Replies

Do you session_start() also on /abc/demo.php?

Yes.

Is there a difference between php versions on local and server?

And you're sure session_start() is called on all pages BEFORE even any whitespace? Check your error_log for any funny stuff

Member Avatar for diafol

Perhaps you could include your code. Scrying is not a common trait.

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.