473,394 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Session_id not automatically saved in PHP 5.2

Atli
5,058 Expert 4TB
Hi.

I've been using php 5.1.x for a while now and have a whole bunch of php code wirtten that works fine using that.
I just updated to 5.2 and now none of the sessions I use work.

I've found that the session.save_path has to be set for windows systems. I did that and the session data is written there. But still, the php code always looks for data in some temp folder way inside my temp internet files.
I manually set the save_path before calling session_start() and that seemes to point it in the ritght direction. But still, now the session_id is changed everytime I hit a link or reload the page.

So basicly the session data is saved but the session_id is lost every time I reload.

Anybody know a way to fix this?
Dec 25 '06 #1
2 1365
Atli
5,058 Expert 4TB
I fix it btw...

PHP 5.2's default setting is to not use cookies, wich means the session_id is never saved on the client wich means it keeps making new once..
Dec 26 '06 #2
ronverdonk
4,258 Expert 4TB
I am glad you found the problem!

If you don't mind I will alter the title of your thread slightly, so other members can see more easily the topic and may benefit from your experience.

Ronald :cool:
Dec 26 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Annie | last post by:
I have a script to check if a session exists, if not then I log the user's info from $_Server variables into a database (ip address, time, etc.). The problem is that the test: ...
1
by: Ken | last post by:
Which is the correct means of transferring session_id() attached to the URL address? or do all work? I am getting inconsistence results. $sessionid = session_id(); <a href="<?PHP echo...
4
by: jaf893 | last post by:
I have the following script: <?PHP session_start(); echo session_id(); ?> But it gives a different session_ID() everytime the page is reloaded. Is there any way to keep the same...
11
by: Gary | last post by:
I'm using Access 2002. I have a field called Job No. It is a text (data type). The reason being that there is an "I" in front of each number i.e. I1234 I1235 etc The problem is that when...
3
by: CjB | last post by:
Hello, I am trying to do the following in one of my pages. session_id($_GET); session_start(); I am running php5, however as soon as I call session_start the script hangs and nothing happens....
1
by: xamman | last post by:
hi there, from what i understand not all objects & variables are saved in the viewstate, even though all objects & vars are lost after the page response is sent to the client browser. is there...
1
by: =?Utf-8?B?QW5ndXM=?= | last post by:
New user. Where do E-mails go once they are no longer seen on E-mail incoming mail screen? Are they automatically saved in some folder? If so: what is the name of that folder? Thanks, Angus
1
by: campbellbrian2001 | last post by:
I have a product inventory database with a form to enter new products. I used the wizard to add a button to save the new item upon pressing it, however I noticed that the record is saved anyway....
1
by: SinekSekiz | last post by:
Hi All I have looked all over the internet for this. What I basically want to do is implementing following link to the flash getURL(); function. <a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.