session_start() with dreamweaver templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samvb
    New Member
    • Oct 2006
    • 228

    session_start() with dreamweaver templates

    I have searched the web but found no real solution. A previous developer developed an intranet with dreamweaver temapltes which is not really my favorite. Now my boss wants to track user loginstattte in all the pages. Since therwhole website is based in dwt, i want to start session_Start in the file plus track login and logout of the user from there.

    Where do I place start session?
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    in the beginning of every page.

    if you ask why, then answer is complicated based on php ini setup. anyway. in simple words when php try to start a session it first look if there is already a session(getting from cookie) if not found then create a new session and send the information to the browser as header. header must have to be send before any other data.

    and getting information of user in every page. save some user information in the session. whenever user would go to a new page , the name of the page can be stored along with the name of user for further analysis

    Comment

    Working...