0

Im getting this super annoying error in .net (c#), after a RedirectToAction i loose all of my Session stuff.

...

    Session["someStuff"] = "Super Really Nice Stuff";

    // this sid is passed, but session dont
    return RedirectToAction("method", new { sid = sid }); 
}

public ActionResult method(string sid)
{
    var someStuff = Session["someStuff"] // Session is null :s

 ....

Can someone help me please ? This is so annoying.

kanazaca
  • 28
  • 3
  • 8
  • 1
    see http://stackoverflow.com/questions/9004106/mvc3-destroying-session-on-redirecttoaction – Habib Apr 05 '16 at 14:48
  • 1
    @Habib Thanks for you answer, but i already tested it and still not working, even if i remove the line sessionState ... And its the whole session not just a var. – kanazaca Apr 05 '16 at 14:53

0 Answers0