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

  • SEARCH
  • Home
  • 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 6772573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:33:54+00:00 2026-05-26T15:33:54+00:00

Possible Duplicate: Session variable is lost on RedirectToAction in IE I’m using MVC3 and

  • 0

Possible Duplicate:
Session variable is lost on RedirectToAction in IE

I’m using MVC3 and the application is called from an external PHP website (form – post).
I’ve got this:

Internet Explorer 9 (9.0.8112.16421 update 9.0.3)

Home controller – method Index(string A, string B, string C) is called.
Values are fine and are stored on the session (Session[“A”], …).
Redirect to Login controller.

Login Controller – method Index() is called.
Session values are just lost (null)

Internet Explorer 8, Chrome & more

Home controller – method Index(string A, string B, string C) is called.
Values are fine and are stored on the session (Session[“A”], …). Redirect to Login controller.

Login Controller – method Index() is called.
Everything works fine (values are stored on the session)

Notes

This ONLY happens when the form is inside a PHP page on another host (maybe another OS but can’t say for sure) with IE 9 but while inside our intranet host (IIS) or a cloud host (also IIS) there is no problem at all (even with IE9).

I’ve created a sample code on the view as bellow:

@{
   if (Session != null)
   {
       foreach (var item in Session.Keys)
       {
           ViewContext.Writer.Write(String.Format("{0}<br />", item));
       }
   }
   else
   {
       ViewContext.Writer.Write("Session = null");
   }
}

Using IE8, Chrome and others, all keys are there.
But using IE9 there is nothing at all, but the session is not null too. It’s just empty.

Any help?

  • 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-26T15:33:54+00:00Added an answer on May 26, 2026 at 3:33 pm

    Answer found.

    After a deep search into google I’ve found:

    Session variable is lost on RedirectToAction in IE

    Cookie blocked/not saved in IFRAME in Internet Explorer

    Both get into the same core problem. Frames.
    After removing the frames from the page variables worked just fine.

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

Sidebar

Related Questions

Possible Duplicate: Troubles with a PHP session variable after form submission I use sessions
Possible Duplicate: PHP Session Fixation / Hijacking I've been using $_SESSION superglobal a lot
Possible Duplicate: encode json using php? $hello_world = $this->session->all_userdata(); foreach($hello_world as $key=>$product_id) { $query['products']
Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: How do I expire a PHP session after 30 minutes? I am
Possible Duplicate: How to call a JavaScript function from PHP? I have a php
Possible Duplicate: How's the current state of Facebook's session and access_token? I am using
Possible Duplicate: Passing javascript variable to PHP Hi I wonder if it's possible to
Possible Duplicate: Can't pass mysqli connection in session in php Many of us have
Possible Duplicate: (PHP) how to destroy or unset session when user close the browser

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.