Thread: Sessions

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Pune, Maharashtra, India
    Posts
    4
    Rep Power
    0
    Hi,
    I am new to PHP and am trying out something in sessions. But haven't yet succeeded. I have a form where a user fills in information. When the user opens this form i want to start his/her session. And from here on i want to continue with this same session to the next form until the user closes the form.
    How can i start a session and use that same session id throughout the rest of the other forms.
    Please help,
    Derek
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    session_start();
    session_register('variable_name');

    Then in each subsequent page you only need to do:

    session_start();

    and $variable_name will be available.

Similar Threads

  1. Why do sessions dissappear when entering a ssl webpage
    By cuboctahedron in forum PHP Development
    Replies: 3
    Last Post: July 2nd, 2003, 08:43 PM
  2. multipage form: sessions or hidden fields?
    By Ssy in forum PHP Development
    Replies: 7
    Last Post: June 24th, 2003, 10:20 AM
  3. Creating user sessions w/out using sessions
    By marron79 in forum PHP Development
    Replies: 5
    Last Post: September 13th, 2002, 05:16 PM
  4. Membership system using sessions and cookies
    By m0nk3y in forum PHP Development
    Replies: 6
    Last Post: March 26th, 2002, 05:24 PM
  5. Replies: 4
    Last Post: September 16th, 2001, 10:48 AM

IMN logo majestic logo threadwatch logo seochat tools logo