Announcement

Collapse
No announcement yet.

session id between two computers..

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

  • session id between two computers..

    This is not vB specific, but a general PHP question. I was wondering something about PHP sessions.

    Assume USER-A doesn't have cookies enabled, and are relying on session_id to be passed via the URL. If they go to a page, copy/paste the url, and send it to their friend, USER-B, will USER-B automatically logged in as USER-A? If so, how do you prevent something like this from happening?

    Thanks,
    Brandon
    What do you Listen-To? http://www.listen-to.com

    i <3 vBulletin.

  • #2
    Not unless they're running from behind the same proxy. e.g. If they have the same IP according to PHP, they will be treated as the same user.

    Comment


    • #3
      Ahh, ok. That explains it.

      I've experienced this problem before, but the two users were at the same college. Probably had the same IP address.

      Thanks alot for the response
      What do you Listen-To? http://www.listen-to.com

      i <3 vBulletin.

      Comment


      • #4
        No problem.

        Comment

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