Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3497760
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:24:35+00:00 2026-05-18T12:24:35+00:00

Scenario: I have a web application (SnapshotServer) which uses a WebBrowser control to take

  • 0

Scenario:

I have a web application (SnapshotServer) which uses a WebBrowser control to take a snapshot images of a web page.

I use a WebBrowser control within SnapshotServer to navigate to a entry page of a secure web application (ImageHost) and then redirects me to my required page.
The ImageHost application is protected by FormsAuthentication, which uses cookies. The entry page I navigate to takes care of logging me in – which will create an Auth cookie.

Once a response is generated from the ImageHost, I convert the result within the WebBrowser control to an image.

Issue:

When I run SnapshotServer on my PC (Windows 7, IE8), using IIS7, and navigate to ImageHost on my development server (Windows 2008 R2, IE8), the result is as required – I’m logged into ImageHost and redirected to the page I want an image of.
When I run SnapshotServer on any Windows 2008 R2 server, using IIS7, and navigate to ImageHost on my development server (Windows 2008 R2, IE8), the result is not as required – ImageHost fails to log in – so my image is of the login page. The reason it fails to log in is that it isn’t creating an Auth cookie.

So I’d like to know if anyone can tell me why the WebBrowser control, when run from a Windows 2008 server, cannot create cookies.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:24:36+00:00Added an answer on May 18, 2026 at 12:24 pm

    First of all it has nothing to do with your windows version or your IIS version or even your IE Version.

    This might be related to some security issue on your IE on windows 2008. Check internet options and enable cookies (If it’s disabled which i think it’s not).

    Also you can force your WebBrowser control to use cookie container like this:

    public partial class WebBrowserControl : Form
    {
         private String url;
    
         [DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]
         public static extern bool InternetSetCookie(string lpszUrlName, string    lbszCookieName, string lpszCookieData);
    
         public WebBrowserControl(String path)
         {
              this.url = path;
              InitializeComponent();
    
              // set cookie
              InternetSetCookie(url, "JSESSIONID", Globals.ThisDocument.sessionID); 
    
              // navigate
              webBrowser.Navigate(url); 
         }
    }
    

    These should solve your problem

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the scenario: I have a multi threaded java web application which is running
I have a web application (Java, Websphere, JSP) which allows co-workers to register visitors
I have a web application that communicates between two different web applications (one receiver
I have a web-application. The flow of processing a form in it goes like
I have a web application that needs to fire off a long-running SQL Server
I have a web application that communicates to a WCF service through a WCF
I have a web application that sends a single sms to multiple numbers via
I am developing an application which should work under different languages (german, spanish, etc).
I have the following scenario: I have a database with a particular MyISAM table
Okay this may be a simple question but I have yet to come with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.