SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2002
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Session Management

    When using sessions the fist line of my code has to be this;

    session_start();

    This has to appear before any HTML. But if this is the case the header needed for caching are not sent.

    I've tried messing with session_cahce_limiter, but to be honest it was difficult to control what got cached and what didn't.

    How can I make this work? How can I make my forms cache the data when the back button is pressed?


    Cheers
    Rich
    Last edited by {xE}darius; Mar 17, 2002 at 07:31.

  2. #2
    SitePoint Enthusiast MaRkY's Avatar
    Join Date
    Dec 2001
    Location
    Spain
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try to use form method="GET" in case of form method= "POST". So you will solve the back button problem.

  3. #3
    SitePoint Member
    Join Date
    Mar 2002
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need to see what headers are created by this line;

    session_cache_limiter('private');

    any suggestions for a utility that captures headers? My telnet client is a bit lame


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
  •