Announcement

Collapse
No announcement yet.

About sessionhash : when to use it and how it works?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • About sessionhash : when to use it and how it works?

    Hello,

    I'd like to know a little bit more about session hashs.

    Let us say I want to make (translate ) a FAQ page. Then, I want to provide a link to edit the user's profile. Which one should I use ?
    1. <a href="profile.php?do=editprofile">click here</a>
    2. <a href="profile.php?s=$session[sessionhash]&amp;do=editprofile">click here</a>
    About the first case : if someone does not use cookies (Mister NoCookies), but use each link to send the session data, then it won't work, right ?

    About the second case : if someone does use cookies (Mister Cookies), then sending the session data through the link is no use at all, right ? Or is sessionhash set to NULL for Mister Cookies ?

    Another question is : what happens if I post on a public board a link with my sessionhash ? Are people going to be able to identify as me ? Will it breaks the current identification of another NoCookies user if he clicks on my link ?

    Thank you for your detailed anwers !
    Last edited by Lumina; Fri 20 Jun '03, 5:49pm.
    Lumina, aventurière des mondes fantastiques et petite rédactrice au grand cœur
    Cœur Lumière - vBulletin-fr
    Join the vBulletin French community social group!

  • #2
    Always use the 2nd.

    Comment


    • #3
      So, no risk if I post a sessionhash on a public board ?
      And no conflict if a Cookies user clicks on links with a sessionhash ?
      Lumina, aventurière des mondes fantastiques et petite rédactrice au grand cœur
      Cœur Lumière - vBulletin-fr
      Join the vBulletin French community social group!

      Comment


      • #4
        Actually, use neither. Link to profile.php?$session[sessionurl]do=editprofile . That will handle all the session stuff for you.

        Comment


        • #5
          Thank you very much Ed Sullivan !
          That is exactly what I was looking for, and it's working great !
          Lumina, aventurière des mondes fantastiques et petite rédactrice au grand cœur
          Cœur Lumière - vBulletin-fr
          Join the vBulletin French community social group!

          Comment


          • #6
            And what is s[sessionhash] for ?

            Found it in vbphrase : pm_ nofolders

            Should I leave it, or change it to session[sessionurl] ?
            Lumina, aventurière des mondes fantastiques et petite rédactrice au grand cœur
            Cœur Lumière - vBulletin-fr
            Join the vBulletin French community social group!

            Comment


            • #7
              I think that's a bug. I believe the sessionurl should be used.

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              X