Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 390
  • Last Modified:

PHP session_id() every time is different after refrech page

Hello,
I have problem ,PHP session_id() every time is different ,when i reload or go to other page,I need that it be same when user are login to site. Please help me? What can be. servers session configuration standartic.
Thang you.Waiting your answers
0
domka
Asked:
domka
  • 3
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
do you call session_start() before calling session_id()?
0
 
afzzCommented:
in your php.ini

check the following settings and makesure you have your /tmp directory correctly setup

session.save_handler = files
session.save_path = /tmp

also check

session.cookie_secure = false
0
 
domkaAuthor Commented:
session_start();
   echo session_id();
yes i uses session_start
server configuration
session.save_handler =files
session.save_path = C:\WINDOWS\Temp
session.cookie_secure =Off
evethink is alright in configuration.
but  PHP session_id() every time is different ,when i reload or go to other page :(

0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
so I assume you closed the question wrongly/prematurely?

0
 
afzzCommented:
you say it does'nt work and accept the answer. If you did it by mistake, open another as there may be an answer to this.
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
>If you did it by mistake, open another as there may be an answer to this.
actually, in that case I will reopen the question!
please tell us...
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now