dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: [PHP] Problem using sessions

  1. #1
    Join Date
    Jul 2007
    Location
    Italia
    Posts
    45

    [PHP] Problem using sessions

    I'm trying to write an application and I need to have some variables available on several pages, so I've thought to put them into the session.
    Well, I couldn't do that so I've tried a simple script like this
    Code:
    <?php
    $started = session_start();
    
    if($started)
       print "session started";
    else
       print "session not started";
    ?>
    the result is always "session not started".
    I'm using a XAMPP platform, may that be caused because of register_globals set to off or because of any other reason?

  2. #2
    Join Date
    Aug 2002
    Posts
    879

    Re: [PHP] Problem using sessions

    Well there are many reasons.
    Did you check-out

    http://de.php.net/manual/en/function.session-start.php

    and read the comments?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)