# Session problems!

**URL:** <https://forum.kirupa.com/t/session-problems/221829>\
**Category:** programming\
**Created:** [April 8, 2007, 10:08am UTC](https://forum.kirupa.com/t/session-problems/221829 "2007-04-08T10:08:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![forza\_stiinta](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@forza\_stiinta](https://forum.kirupa.com/u/forza_stiinta)\
**Post date:** [April 8, 2007, 10:08am UTC](https://forum.kirupa.com/t/session-problems/221829/1 "2007-04-08T10:08:57Z")

</div>

Hello!  
I have a problem which I cannot explain.  
Now, I store in session an id, which is a number. The problem is that after loading a php page that number becomes 9…  
I do not know why… but if the number is 2, it becomes 9, if it’s 1, nine also…  
The page that loads is a php file, but actually no php code is executed - just loads the number from the session like this

```auto
session_name('agent');
session_start();
$agent=$_SESSION['id'];

```
