Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. WebBrowser control Session issue ?

WebBrowser control Session issue ?

Scheduled Pinned Locked Moved Visual Basic
comhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    imran_rafique
    wrote on last edited by
    #1

    i have two WebBrowser object on my Form with following line of code against a button click event WebBrowser1.Navigate("http://localhost/WebApplication1/Default.aspx") WebBrowser2.Navigate("http://localhost/WebApplication1/Default.aspx") in Default.aspx i am displaying SessionID ... Default.aspx page is showing same SessionID for both WebBrowser1,and WebBrowser2 objects. how to get different sessionID in both WebBrowser1,and WebBrowser2 controls?

    r00d0034@yahoo.com

    N 1 Reply Last reply
    0
    • I imran_rafique

      i have two WebBrowser object on my Form with following line of code against a button click event WebBrowser1.Navigate("http://localhost/WebApplication1/Default.aspx") WebBrowser2.Navigate("http://localhost/WebApplication1/Default.aspx") in Default.aspx i am displaying SessionID ... Default.aspx page is showing same SessionID for both WebBrowser1,and WebBrowser2 objects. how to get different sessionID in both WebBrowser1,and WebBrowser2 controls?

      r00d0034@yahoo.com

      N Offline
      N Offline
      Noctris
      wrote on last edited by
      #2

      Make sure you are on different sessions.. i think the default behaviour of the WebBrowser control inherits from Internet Explorer stuff ( probably).. and as I recall, while in the same thread or executable, sessions are shared. ( like in internet explorer when you open different tabs in the same browser)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups