# PHP - $\_SESSION in IE6

**URL:** <https://forum.kirupa.com/t/php--session-in-ie6/225730>\
**Category:** programming\
**Created:** [May 15, 2007, 7:41am UTC](https://forum.kirupa.com/t/php--session-in-ie6/225730 "2007-05-15T07:41:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [May 15, 2007, 7:41am UTC](https://forum.kirupa.com/t/php--session-in-ie6/225730/1 "2007-05-15T07:41:05Z")

</div>

Hi peoples. Im having some trouble with $\_SESSION data magically dissappearing in IE6 (it works perfectly in IE7 and F-fox)

This is my php, from a file called “setup.php” which is the first file to be included in my template php page.

```php

session_start();
if( $_POST['username'] && $_POST['password'] ) {
    if($_POST['username'] == "correct" && $_POST['password'] == "correct"){
        $_SESSION[username] = "correct";
        $_SESSION[password] = "correct";
    }
}
if($_SESSION[username] == "correct" && $_SESSION[password] == "correct"){
    $loggedIn = 1;
}

```

Whats odd is that only in IE6, if i enter the correct username and pass, then hit submit on the login form, the page that loads reflects that you are now logged in…but then if i navigate to another page within the site (using the same template.php including the same setup.php) - the session data seems to dissappear…

anyone know why this is happening only in IE6?
