SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    PHP sessions don't work!

    Hi there,

    I installed PHP 5.2.1 on IIS7 on Vista.
    Everything runs fine, including MySQL and other extensions.
    Though...there is a problem with sessions/cookies.
    Whenever I create a session, like logging in, it doesn't work at all.
    How can I troubleshoot this?

    Best,
    Antonie
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  2. #2
    SitePoint Evangelist superuser2's Avatar
    Join Date
    Aug 2006
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're one of many separate threads having issues with sessions - so I'm guessing it's something to do with php 5.2.1 - how many other people are having this issue.

  3. #3
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by superuser2 View Post
    You're one of many separate threads having issues with sessions - so I'm guessing it's something to do with php 5.2.1 - how many other people are having this issue.
    Strange...I wonder.
    I got it working on another machine with the same setup.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  4. #4
    SitePoint Evangelist superuser2's Avatar
    Join Date
    Aug 2006
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess not then. I'm a Mac/UNIX person and a stranger to Windows filesystem permissions - but are they right?

    If there's no error there, try restarting apache and/or your computer, failing that, see my post about database-powered sessions and the relevant thread.

  5. #5
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by superuser2 View Post
    I guess not then. I'm a Mac/UNIX person and a stranger to Windows filesystem permissions - but are they right?

    If there's no error there, try restarting apache and/or your computer, failing that, see my post about database-powered sessions and the relevant thread.
    I currently have PHP installed in "C:\PHP"

    I edited my php.ini configuration file and set new paths for the session.save_path and upload_tmp_dir

    Then I ensured that these folders exist and in the security tab of the properties dialog, I added the user "IUSR" with full read and write permissions.

    Something else is missing here...
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  6. #6
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If only I could run Apache on Vista...
    I don't code in ASP.net at all, but there simply isn't an Apache solution for Vista.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  7. #7
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Seems like Xampp released a new version.
    http://www.apachefriends.org/en/xampp-windows.html
    I'm downloading it now and will give it a shot.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  8. #8
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    It is Windows Vista. And you can run Apache on Vista but you have to give/run as Admin.

    But yes sessions have problems on Vista. I never got it to work so just went back to XP.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  9. #9
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by logic_earth View Post
    It is Windows Vista. And you can run Apache on Vista but you have to give/run as Admin.

    But yes sessions have problems on Vista.
    Thanks!
    Installed the new Xampp version and it works.
    I really missed Apache!
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  10. #10
    SitePoint Member
    Join Date
    Sep 2005
    Location
    Melbourne, Australia
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do you get PHP 5.2.3 for work with IIS7?

    I added the "C:\PHP\php5isapi.dll" to the Handle Mappings but all i get is "Handler "PHP" has a bad module "IsapiModule" in its module list".

    I have Apache working.
    Anthony Attard
    "Violence is the last resort of the incompetent."


Bookmarks

Posting Permissions

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