• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 391
  • 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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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