clear session variables in a webbrowser control
clear session variables in a webbrowser control
clear session variables in a webbrowser control
clear session variables in a webbrowser control
clear session variables in a webbrowser control
clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control
clear session variables in a webbrowser control clear session variables in a webbrowser control
clear session variables in a webbrowser control
Go Back  Xtreme Visual Basic Talk > > > clear session variables in a webbrowser control


Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2006, 12:57 PM
ilsumar ilsumar is offline
Newcomer
 
Join Date: Jun 2006
Posts: 3
Default clear session variables in a webbrowser control


I have a webbrowser control that is used to navigate to a site that uses session variables that are not stored in cookies. Is there a way to clear these session variables, or even better to edit them?

Thanks in Advance
Reply With Quote
  #2  
Old 06-27-2006, 03:13 PM
wayneph's Avatar
waynephclear session variables in a webbrowser control wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

Well, I can answer part of this... No you can't edit them. They are managed via server code, and many sites would be useless if the user could pick and choose what session variables they wanted.

As far as killing them, the SessionID is normally stored in a cookie. If it's not, I'd look at the URLs on the page, because another common method of maintaining the ID is to pass it in the URL. If you can't find where to take it out, I'd try to dispose of the web browser and create a new instance. That should cycle the instance of IE, so that the session data is automatically cleaned up.
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
  #3  
Old 06-27-2006, 11:35 PM
ilsumar ilsumar is offline
Newcomer
 
Join Date: Jun 2006
Posts: 3
Default

Actually I regress, I can't determine how the session variable is being stored.

Using Firefox I can easily see that a cookie is being made, but using IE or the WB control I can't, meaning there is no cookie file in USER\Cookies. Also by telling IE to prompt for cookies and browsing to the site I get no prompt asking me to accept the cookie. Could the cookie be hiding somehwere else?

Also there are no values being tagged to the URL. Could the session variables be passed another way?

I am positive there is a variable tracking me on the site because I can login and stay on the site. (sorry couldn't find a way to say it better)

Anyway I will try to recreate the webbrowser control.


Thank You in Advance
Reply With Quote
  #4  
Old 06-28-2006, 12:07 AM
MikeJ's Avatar
MikeJclear session variables in a webbrowser control MikeJ is offline
Retread

Retired Moderator
* Expert *
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 6,747
Default

Wayne is correct - session variables cannot be modified by the user. They are server side. Some sites also log your IP to keep you logged in - that way they don't have to put cookies on your computer.

Good luck re-writing the WebBrowser control. Not only will you have to parse the DOM, you will have to find a way to support JavaScript/VBScript (I think the Script object could work for this though), display images and tables, add support for tags, and download files. It's no easy task, but major props to you if you can do it!
__________________
{ Lex Fori } { Locus Classicus } { Rutilus Scrinium }
Osculare pultem meam!
Reply With Quote
  #5  
Old 06-28-2006, 01:42 AM
ilsumar ilsumar is offline
Newcomer
 
Join Date: Jun 2006
Posts: 3
Default

Sorry bad wording (English isn't my first language). By "recreate" I mean to simply use Controls.Remove Controls.Add.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
clear session variables in a webbrowser control
clear session variables in a webbrowser control
clear session variables in a webbrowser control clear session variables in a webbrowser control
clear session variables in a webbrowser control
clear session variables in a webbrowser control
clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control clear session variables in a webbrowser control
clear session variables in a webbrowser control
clear session variables in a webbrowser control
 
clear session variables in a webbrowser control
clear session variables in a webbrowser control
 
-->