473,385 Members | 1,320 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,385 software developers and data experts.

Sessions problems

I'm trying to use session_set_save_handler to save session to mysql. I
have found alot of great examples and everything works except garbage
collection. which results in the following.

Unknown: A session is active. You cannot change the session module's
ini settings at this time. in Unknown on line 0

after a few hours of googleing and bug searching at php.net I have
found alot of posts regarding this problem. None appear to be recent
and none appear to have a solution.

I'm using gentoo with kernal 2.6.8.1, php 5.0.1, mysql 4.

Is this still a bug or has it been fixed?

Thanks in advance.

Jason
Jul 17 '05 #1
2 1599
py
Jason wrote:
I'm trying to use session_set_save_handler to save session to mysql. I
have found alot of great examples and everything works except garbage
collection. which results in the following.

Unknown: A session is active. You cannot change the session module's
ini settings at this time. in Unknown on line 0

after a few hours of googleing and bug searching at php.net I have
found alot of posts regarding this problem. None appear to be recent
and none appear to have a solution.

I'm using gentoo with kernal 2.6.8.1, php 5.0.1, mysql 4.

Is this still a bug or has it been fixed?

Thanks in advance.

Jason


If you look at your code closely, are you sure you did not start the
session in the page you are having a problem before an ini_set command
like :
ini_set("session.gc_probability", "100");

By the way you should leave this to 100 while debugging...

py

p.s. you should post your code.
Jul 17 '05 #2
"Jason" <jw******@sfcn.org> wrote in message
news:3c**************************@posting.google.c om...
I'm trying to use session_set_save_handler to save session to mysql. I
have found alot of great examples and everything works except garbage
collection. which results in the following.

Unknown: A session is active. You cannot change the session module's
ini settings at this time. in Unknown on line 0

after a few hours of googleing and bug searching at php.net I have
found alot of posts regarding this problem. None appear to be recent
and none appear to have a solution.

I'm using gentoo with kernal 2.6.8.1, php 5.0.1, mysql 4.

Is this still a bug or has it been fixed?

Thanks in advance.

Jason


Check your php.ini. session.auto_start might be turned on.
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: The Plankmeister | last post by:
Hi... I'm trying my hardest to understand fully how sessions work and how best to use them. However, all I can find is information that doesn't tell me anything other than that sessions store...
22
by: Theo | last post by:
Question for the group The authentication system for the site Im working on seems to function properly and all is good. A session keeps track of everything and a cookie is used to accept or deny...
9
by: Bartosz Wegrzyn | last post by:
I need help with sessions. I createt set of web site for nav with authorization. first I go into main.php which looks like this: <?php //common functions include_once '../login/common.php';...
10
by: Mark H | last post by:
Hey all-- I'm building a database and I basically need to keep out people who aren't authorized, but it's not like I need top security here. I'm just doing basic user/pass of a SQL database, and...
1
by: Nick McGrath | last post by:
Has anyone had any problems using sessions with XP? Are there any tricks to getting it to work properly? ----------------------------- This message is posted by http://Asp.ForumsZone.com
6
by: Paul | last post by:
Hi all, I seem to been having a problem with sessions. I have a session in the login page Session("UserLevel") = (MM_rsUser.Fields.Item("Accesslevel").Value) which doesn't seem to be visible...
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
2
by: Harald | last post by:
Hi My question is if and how a static variable remains the same state if more than one session of my web site is running. Is the content of my static different at all sessions or not. For sample...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
by: jantox | last post by:
Good day, We have some Java programmers in our software dev, and they are pressuring us to use Sessions to store data and use that Session to get query data. They say that it is ok since it is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.