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 8896715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:08:49+00:00 2026-06-15T00:08:49+00:00

I have an MVC4 (using razor) main site and then an asp.net webforms store

  • 0

I have an MVC4 (using razor) main site and then an asp.net webforms store that runs as a web application in a virtual directory. Can I have a forms authentication page in my MVC4 main site, authenticate the user and then upon authentication send them to the store AND if they try to browse directly to the virtual directory without yet being authenticated have it redirect them back to the MVC4 forms authentication page?

So for instance:
They go to http://www.mysite.com/account/login wherein it displays my nice log-in page running on MVC4 and part of the main site.
After they successfully log-in it takes them to http://www.mysite.com/store/ (a web application/virtual directory) and since they’ve successfully authenticated it displays the store.
And then on the flip site, if they’re NOT YET authenticated and try to go directly to http://www.mysite.com/store/ (the web application/virtual directory) it redirects them back to the main site’s forms authentication page at: http://www.mysite.com/account/login

I have it authenticating the user just fine on my MVC4 forms authentication page (I’ve tested this and verified it works), the problem is that when I then redirect them to the store, the store doesn’t see them as logged in and asked them to log in using the forms authentication page that the store contains (which has been built in web parts). I want to use the forms log-in page on my MVC4 site (as it’s pretty looking and easier to control/update/code, etc).

Is this a session issue?

  • 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-06-15T00:08:51+00:00Added an answer on June 15, 2026 at 12:08 am

    Ya, I had read that before when researching this and it’s a GREAT article with a WEALTH of knowledge in it… but it kind of took me in a different direction.

    I finally ended up finding the exact solution to my problem here on StackOverflow.

    And also found some good info in another article over at CodeProject here.

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

Sidebar

Related Questions

I have been writing an application using ASP.Net MVC4, where the majority of the
I am developing a JQuery mobile application in ASP.net MVC4 razor using VSRC, In
I have code like below in ASP.Net MVC4. and I am using Razor engine.
I have created a Single Page Application (ASP.NET MVC4) using Steven Sanderson's instructions .
I have an ASP.NET MVC4 site with mobile content. When I deploy this on
I am creating an asp.net mvc4 site using entity framework 5 with codefirst and
Using ASP.NET MVC4 I have created a DelegatingHandler in a WebAPI project. I use
I have a ASP.NET MVC4 project with HTML5 semantic markup enabled. When using @Html.EditorFor(m
I am using EF5 codefirst in an ASP.NET MVC4 app. I have products and
I am using Asp.NET MVC4 with Razor. I want to show a list of

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.