473,609 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where is my mind ?

Hi,

Strange things happening on my server (a little XP machine...) !
Session files (sess_xxxxx...) are created well but they remain empty...
always ! My session variables never get stored !

I'm stuck.
Any tip appreciated...

Matt

--
@+
Jul 17 '05 #1
5 1494

Matthias Ainsworth wrote:
Hi,

Strange things happening on my server (a little XP machine...) !
Session files (sess_xxxxx...) are created well but they remain empty... always ! My session variables never get stored !


Sample code please? Can't debug problems with seeing code.

Ken

Jul 17 '05 #2
Hi Ken,

A sample code will not help much...
But here it is :

session_start() ;

if (!isset($_SESSI ON["count"]))
$_SESSION["count"] = 1;
else
$_SESSION["count"] ++;

echo $_SESSION["count"];

I know this one works.
Every time I call this script a new session file is created (I don't know
why previous is not reused)... and it remains pretty empty.

Everytime I refresh this page, Apache log file (access.log) reports :

127.0.0.1 - - [29/Apr/2005:17:35:36 +0200] "GET /test.php HTTP/1.1" 200
41765
127.0.0.1 - - [29/Apr/2005:17:35:37 +0200] "GET
/test.php?=PHPE9 568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 4459
127.0.0.1 - - [29/Apr/2005:17:35:37 +0200] "GET
/test.php?=PHPE9 568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2974

Any idea what this is (PHPE...) ? It is not my session ID... so ?

--
@+
"Ken Robinson" <ke******@rbnsn .com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .

Matthias Ainsworth wrote:
Hi,

Strange things happening on my server (a little XP machine...) !
Session files (sess_xxxxx...) are created well but they remain

empty...
always ! My session variables never get stored !


Sample code please? Can't debug problems with seeing code.

Ken

Jul 17 '05 #3
*** Matthias Ainsworth wrote/escribió (Fri, 29 Apr 2005 16:01:05 +0200):
Strange things happening on my server (a little XP machine...) !
Session files (sess_xxxxx...) are created well but they remain empty...
always ! My session variables never get stored !


Is it an NTFS partition? Does the user Apache runs as have permission to
write on these files?
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Jul 17 '05 #4
On Fri, 29 Apr 2005 17:46:15 +0200, Matthias Ainsworth wrote:
Hi Ken,

A sample code will not help much...
But here it is :

session_start() ;

if (!isset($_SESSI ON["count"]))
$_SESSION["count"] = 1;
else
$_SESSION["count"] ++;

echo $_SESSION["count"];

I know this one works.
Every time I call this script a new session file is created (I don't know
why previous is not reused)... and it remains pretty empty.

Everytime I refresh this page, Apache log file (access.log) reports :

127.0.0.1 - - [29/Apr/2005:17:35:36 +0200] "GET /test.php HTTP/1.1" 200
41765
127.0.0.1 - - [29/Apr/2005:17:35:37 +0200] "GET
/test.php?=PHPE9 568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 4459
127.0.0.1 - - [29/Apr/2005:17:35:37 +0200] "GET
/test.php?=PHPE9 568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2974

Any idea what this is (PHPE...) ? It is not my session ID... so ?


It looks like your browser wants to send back the session information
(session ID) attached to the URL instead of as a cookie. Yet you say this
is not your session key. Perhaps a misconfiguratio n somewhere? Try to
force PHP to use cookies (this is done in the php.ini file, use cookies
only or something like that) and make sure your browser is allowed to use
cookies, and then see what happens.
Jul 17 '05 #6

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

Similar topics

1
2190
by: Arthur T. Murray | last post by:
"Bill Modlin" <modlin1@metrocast.net> wrote on Fri, 26 Sep 2003: <snip> >>> If I wanted to explain how one of my programs worked >>> I would not give someone a print out of the code. >>> First I would explain it in higher level (folk psychology?) >>> terms and then explain how I embodied these ideas in actual code. >> I'm not sure why - especially if the person you're explaining it to >> is a programmer and knows the language. BM:
11
2552
by: Arthur T. Murray | last post by:
Now, suppose that you wanted to write an AI in Python that would implement your mind-model and allow it to grow, mutate, develop. Here is one possible scenario. It would not be necessary to do all the work yourself. If we began coding a baby Mind.py and published the initial code out on the Web, other Python programmers might start adding to it and start specializing in the refinement of hotspots. ...
47
3613
by: Andrey Tatarinov | last post by:
Hi. It would be great to be able to reverse usage/definition parts in haskell-way with "where" keyword. Since Python 3 would miss lambda, that would be extremly useful for creating readable sources. Usage could be something like: >>> res = where: >>> def f(x):
11
7293
by: Neo | last post by:
Where does global, static, local, register variables, free memory and C Program instructions get stored? -Neo
21
1450
by: Bret Pehrson | last post by:
Hey, which newsgroup is for complaining about how amazingly crappy the Visual Studio 2003 IDE is? Thanks -- Bret Pehrson mailto:bret@infowest.com NOSPAM - Include this key in all e-mail correspondence <<38952rglkwdsl>>
1
1378
by: Dan V. | last post by:
How do I get rid of that '@' symbol from a string? I am tyring to use FileStream.WriteByte but it does not like it. I don't want to write that '@' symbol to the file either. s = @"c:\text1.txt" bytes = Encoding.UTF8.GetBytes(s); fs.Write(bytes, 0, bytes.Length);
5
2328
by: Silvio Matthes | last post by:
Hello, I'm new to the list and did not find a suitable answer to my question so here it is: I try to select the rows of a table where the content of a varchar-column is empty ('') and PostgresQL is doing a seqscan. I've tried this on a PostgresQL-Serverversion 7.3.4 and 8.0 beta1.
19
2782
by: _cin_ | last post by:
hi, all i have some big problem in my mind. i lost the right way, or maybe never find it. i don't understand where's the first question in programming.2 years ago i started from c++ but one day i'd understood that c++ is only platform, there's the basis? i think and suggest to study C i have read K&R's white book, and another q neighboorhooded in my mind: there's the way? Algorithms and datastructures, automates etc... discrete maths, Mr...
14
3018
by: karthikbalaguru | last post by:
Hi, In the case of heap , to keep track of a single chunk of memory it requires 8 bytes of information. That is, it requires 4 bytes to hold the size, and 4 bytes to hold the pointer to the next block of memory. So, For every additional chunk, even if it is only one byte long, these 8 bytes are required again, in addition to the 1 byte actually needed to store the chunk itself. So, there should be wastage of memory for managing the...
0
8145
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8095
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8588
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8410
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6068
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5526
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4037
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.