Results 1 to 4 of 4

Thread: another php troubleshoot

  1. #1
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts

    another php troubleshoot

    I am trying to make some sessions.

    Is there some aspect of the apache/php.ini setup that needs to be configured before I can use sessions ? because I am at a loss.

    I have tried loads of tutorial code,
    a-la, and none of it seems to do anything. I have previously setup things to work on a post/get from a form. However, sessions just do not seem to fly.

    Unfortunately, showing you guys my php config - like the other guys asking for help - is difficult since my webserver is not available to the public !

    predictive thankingly
    - killgORE

  2. #2
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    w00t.. that link is not the tutorial that I finally used..

    I tested it on a web server that is properly configured and the code worked - even though the test form originally uses GET and the script uses POST... !~###...

    Lucky I spotted it ! Or I was going to get more confused.

    BUT. It shows the config of my own server seems to be the problem. So I hope that narrows it down.

    Also..
    I looked at the session section of both servers php info. They are identical apart from "session.use_trans_sid". Where my server is off and the other space is on, as far as I have read this is a security risk of somesort.
    Last edited by killgORE; 27-06-2004 at 04:40 AM.

  3. #3
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    you need to define the session save path in your php.ini and make sure the folder it saves sessions to actually exists. You also need to make sure you use session_start() at the top of every page you want to use a session on

  4. #4
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    Cheers Az...

    I got this working in the early hours of the morning. It WAS the save path. But I set this days ago. It appears that I hadn't reset my computer for a hell of a long time, and so the web server hadn't updated the variables.

    its a problem with insomnia, the lack of concentration ! Otherwise we would all take pills to stay up all the time. The best thing is that all the session code I had made throughout my website worked first time ! So there is proper logging in/out. No multiple users etc. Was surprised it worked so seamlessly.

    Take it easy.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help, php masters!
    By Allen in forum Software
    Replies: 10
    Last Post: 07-07-2004, 07:16 AM
  2. adding php to w2k iis5?
    By joshwa in forum Software
    Replies: 13
    Last Post: 29-11-2003, 02:08 PM
  3. PHP to POST nuke migration
    By Ferral in forum Networking and Broadband
    Replies: 1
    Last Post: 30-10-2003, 08:13 PM
  4. PHP and MySQL
    By Kezzer in forum Software
    Replies: 4
    Last Post: 28-10-2003, 02:59 PM
  5. Syntax Highlighting PHP Editor
    By Jonny M in forum Software
    Replies: 7
    Last Post: 11-09-2003, 10:43 AM

Posting Permissions

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