session riding

Discussion in 'Ruby' started by Chad Layton, Dec 29, 2005.

  1. Chad Layton

    Chad Layton Guest

    When a user browses my script I'd like to grab a session cookie from the
    browser, then use that cookie to request html from a site the user has
    already logged in to. I've been struggling with this for a few days now,
    is it even possible? It seems like it should be but I can think of a
    couple of Bad Things one could do with it.

    Anyways, my intentions are benign. I'd like to do some screen scraping
    from a site that requires a login but I dont want to force people to
    trust me with their information (at least sessions expire).
    Chad Layton, Dec 29, 2005
    #1
    1. Advertising

  2. Chad Layton wrote:
    > When a user browses my script I'd like to grab a session cookie from the
    > browser, then use that cookie to request html from a site the user has
    > already logged in to. I've been struggling with this for a few days now,
    > is it even possible? It seems like it should be but I can think of a
    > couple of Bad Things one could do with it.
    >
    > Anyways, my intentions are benign. I'd like to do some screen scraping
    > from a site that requires a login but I dont want to force people to
    > trust me with their information (at least sessions expire).


    A normal browser will only send you cookies in the same
    domain as the request, so this is likely not possible.


    E

    --
    Posted via http://www.ruby-forum.com/.
    Eero Saynatkari, Dec 29, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Borgwardt

    Re: Over-riding equals method dilemma

    Michael Borgwardt, Aug 14, 2004, in forum: Java
    Replies:
    23
    Views:
    713
    Chris Uppal
    Aug 23, 2004
  2. Ian Davies

    Link style over riding another

    Ian Davies, Apr 24, 2006, in forum: HTML
    Replies:
    5
    Views:
    436
    Toby Inkster
    Apr 25, 2006
  3. Replies:
    3
    Views:
    385
    Lawrence Kirby
    Feb 28, 2005
  4. Replies:
    0
    Views:
    276
  5. Ronnie R

    Session Riding

    Ronnie R, Jan 21, 2010, in forum: ASP .Net Security
    Replies:
    3
    Views:
    768
    Hector Santos
    Feb 2, 2010
Loading...

Share This Page