Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 402
  • 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

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