Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: phpdev

  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    phpdev

    I notice that a few people on this forum seem to be using phpdev, so I thought this is a good place to start!

    I have been given a pen drive with phpdev's amp installation on it - it's great and mostly works fine, but I have a problem with sessions!

    I know I am writing my sessions correctly and when I check in the tmp folder in the root of my pen drive, I can see that sessions have been created, so that doesn't seem to be a problem... the problem I am having is recalling the information from that session!

    I don't get any errors at all, I just get returned to the log in page on the site I am writing, where as the log in page should be hidden as soon as the session is created.

    The relevant section from phpinf:
    Session Support enabled

    Code:
    Directive	Local Value	Master Value
    session.auto_start	Off	Off
    session.cache_expire	180	180
    session.cache_limiter	nocache	nocache
    session.cookie_domain	no value	no value
    session.cookie_lifetime	0	0
    session.cookie_path	/	/
    session.cookie_secure	Off	Off
    session.entropy_file	no value	no value
    session.entropy_length	0	0
    session.gc_maxlifetime	1440	1440
    session.gc_probability	1	1
    session.name	PHPSESSID	PHPSESSID
    session.referer_check	no value	no value
    session.save_handler	files	files
    session.save_path	/tmp	/tmp
    session.serialize_handler	php	php
    session.use_cookies	On	On
    session.use_trans_sid	1	1
    I don't really want to be copying php.ini to my windows folder everytime I use the pen drive, and I wouldn't have thought that necessary because the sessions are obviously being saved!

    My browser seems to report that there has been a cookie saved for the session, and I can't even call the session information back by passing the session ID through the URL (unless I am missing something!).

    I hope somebody can help me - I can't be the only person who has experienced this!!!

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,073
    Thanks
    11
    Thanked 96 Times in 94 Posts
    Hi , try setting the session save path as an absolute path (hardly ideal I know for the usb thing) and see at least if that works ..

    session.save_path $usb:/tmp

    + are you accessing the session data correctly e.g. with
    echo $_SESSION['session_var'];
    ?
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks - it does all work, I was calling the sessions incorrectly!!


  •  

    Posting Permissions

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