SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    WebAmoeba mythix's Avatar
    Join Date
    Aug 2002
    Location
    here
    Posts
    578
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question header(location: blahblah) include GET or POST values?

    Hi

    My site includes a login area, if you stay on for too long without loading a new page then u r automatically signed off. the signing off script destroys the session, then redirects you to the home page. I use the

    header();

    function to achieve this. Is it possible to send GET and or POST data in that header function?

    Thanks
    Laws are like sausages. You have much more respect for them if you haven't actually seen how they're made.

    http://www.webamoeba.co.uk

  2. #2
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can certainly send get info - just do something like:

    header(Location: http://www.yoursite.com/page.php?getinfohere=1");

    Nothing too tricky about it

  3. #3
    WebAmoeba mythix's Avatar
    Join Date
    Aug 2002
    Location
    here
    Posts
    578
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Didn't know I could do that, didn't think it'd like it. I guess i could have bpthered to try it, but my head hurts, lol
    Laws are like sausages. You have much more respect for them if you haven't actually seen how they're made.

    http://www.webamoeba.co.uk


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
  •