$_SESSION Use

    Date: 03/26/12 (PHP Community)    Keywords: php

    I have some php 4 code that is being tested on a php 5 site. The (fairly simplistic) login uses a $_SESSION variable to track a valid login, but under php 5 it seems to lose its values when moving to a different php page.

    A quick scan of the documents didn't show anything obvious about version 4 vs version 5 differences. The code uses session_start(), then checks $_SESSION['loginstuff_notactualkey'] for the user name.

    Is this a coding practice that should be changed with version 5?

    Source: https://php.livejournal.com/683431.html

« Hmm... || Do x to items 1-7, then y... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home