Results 1 to 2 of 2

Thread: cookie problem

  1. #1
    Join Date
    Apr 2007
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default cookie problem

    Hi
    I am doing my browser cookie disable from my firefox browser and trying to login to site. it is not login. once i enable the cookie from browser, then it is logged in. I want to disable my cookie and i want successful login to my site.. how? do you know?
    Note: In my site login page, I am storing the email id pwd into session.

    Regards
    Ranjan

  2. #2
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Sessions use either cookies or the URL (via the $_GET global) to get the session ID. To use the session ID in the URL, you need to change your PHP INI file. Note, however, that this can lead to session hijaking, which is where other people can use the same URL so as to fool the server into thinking the user is someone their not. But, if you take some extra steps (no ideas come to mind right now ), you can make it work. Here is the PHP INI code you need to change:

    Code:
    session.use_cookies = 0
    And for your session start
    Code:
    session_id($_GET['PHPSESSID']);
    session_start();
    I think that's how you do it, but I've never tried.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

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
  •