Session in php is lost after changing page

Asked

Viewed 831 times

1

I’m having serious problems need to deploy a php script that I made on a centos server that I installed. Apparently everything ok. Until the time to login.

it logs but goes back to login screen and does not generate errors.

I vardump the session right after it is created and this ok only if I reload the studio or step to another it loses this session. could someone help me find the error in setting up php on linux ??

my php.ini

https://pastebin.com/H9RSQdmk

it seems that it is generating a new session ( file ) each time q I give Reload on the page.

  • Dumb question, but in the next step the page has session_start()? It is essential on any page that uses session. Not just to raise her.

  • face is not php problem and yes server centos I installed that system I did works up to in Locaweb :(

  • Dude, just in case, release the server errors. If it’s something related to the session path, we can find out there.

  • the problem he q not he stick in the patch I thought it was and I switched the folder and it is being generated normally if I edit the files it shows the generated session. by what I saw each time q vc opens a page in php it’s generating a new session of 0. I’m installing centos 7 instead of 6 for v c I can make it work

  • Have you come to test and different browsers ? in Google Chrome even some extensions can reset php session constantly as safe torrent scanner for example

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.