PHP session_id() every time is different after refrech page

Posted on 2008-06-15
Last Modified: 2012-08-13
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
Question by:domka
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 143

Accepted Solution

Guy Hengel [angelIII / a3] earned 500 total points
ID: 21788431
do you call session_start() before calling session_id()?

Expert Comment

ID: 21788435
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

Author Comment

ID: 21788451
   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 :(

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 21788464
so I assume you closed the question wrongly/prematurely?


Expert Comment

ID: 21788499
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.
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 21788505
>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...

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question