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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:52:28+00:00 2026-05-20T10:52:28+00:00

Our website runs on ASP.NET v4 and users log in user Forms authentication. We

  • 0

Our website runs on ASP.NET v4 and users log in user Forms authentication.

We are considering purchasing a web application that will add to our services. The only problem is that this new website is written in PHP.

We would like users to login to our ASP.NET site and then navigate to the PHP site. The PHP site should notice that users are logged-in though. So we probably need to transfer the ASP.NET SessionID cookie and somehow use that to verify whether or not the user has been authorized.

Does this sound feasible? Or am I barking up the wrong tree?

  • 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-20T10:52:28+00:00Added an answer on May 20, 2026 at 10:52 am

    It is surely possible, but you need some dirty-coding to do.

    In fact, both ASP.NET and PHP Sessions create a software layer that hides mechanisms used to perform session handling and validation.

    You can simply define a common cookie between the two applications (make sure you sign it or store it in a common DB), then use your own custom logic to link an ASP.NET session to PHP.

    Database is a great option. I would recommend you to define a custom session manager class in Web.config and have it write session data in common DB, from where PHP will load.

    But I don’t know how to write a custom PHP session manager. You might consider using custom PHP code on page init to initialize session basing on data found on DB.

    So your application will be made of three things:

    • ASP.NET part
    • PHP part
    • Common database

    A simple usage scenario:

    1. User performs login on ASP.NET
    2. ASP.NET validates login, sets a cookie with known name and inserts a row in the database with cookie value (and possibly IP address for security)
    3. User navigates PHP site transmitting the cookie
    4. PHP checks cookie against table, and possibly initializes its own session

    More complex designs could actually share session data between both PHP and ASP.NET using a single database table AND no local memory.

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

Sidebar

Related Questions

We have developed our website(Business users website) in .net Framework 2.0 Our client us
We have some files on our website that users of our software can download.
We want to implement chat on our website so that users can communicate with
Our company runs a web site (oursite.com) with affiliate partners who send us traffic.
We have a simple registration form for our website users where we only require
Our website uses Perl to provide a simple mechanism for our HR people to
To deploy a new version of our website we do the following: Zip up
We are doing some performance tests on our website and we are getting the
I'm trying to reduce the form spam on our website. (It's actually pretty recent).
We have several wizard style form applications on our website where we capture information

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.