Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
ASP .NET PHP Sessions Cookies Authentication Problem
Old 07-22-2004, 11:12 AM ASP .NET PHP Sessions Cookies Authentication Problem
dprichard's Avatar
Junior Talker

Posts: 3
Location: Tampa
Trades: 0
Okay, I need some serious programming answers PLEASE!!!!. Here is the scenario:

Customer wants users to authenticate based on where they came from. They have several locations that the users will be coming from. They don't want anyone to be able to access their website from anywhere other than these locations. The locations ip addresses will be changing regularly. Is there a way to have a page on the INTRANET internally that the users will go to and it will start a session or place a cookie and pass them to the website. The website then looks for that session or cookie and lets them in or denies them based on the session or cookie. The sites that they will be coming from are ASP and .NET servers and it encrypts the URL that it is coming from. The website it is going to is on a PHP server and is built on PHP and MySQL. I have asked this in like every forum on the internet I can find and no one seems to have a solution. Any help would be greatly appreciated.

__________________
David A. Prichard


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dprichard is offline
Reply With Quote
View Public Profile Visit dprichard's homepage!
 
 
Register now for full access!
Old 07-22-2004, 11:20 AM hi
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
You are best (i think) by using session cookies. (it's a mix) to find complete and accurate PHP scripts check here:

www.w3schools.com/php
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 07-22-2004, 11:22 AM
dprichard's Avatar
Junior Talker

Posts: 3
Location: Tampa
Trades: 0
Thank you for responding so quickly!!

Will I be able to pass the cookie from the ASP or .NET server to the PHP machine?

__________________
David A. Prichard


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dprichard is offline
Reply With Quote
View Public Profile Visit dprichard's homepage!
 
Old 07-22-2004, 11:24 AM hi
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
There is another option: ASP.Net, it is one whole thing. It used to be called ASP+. Check out below for more details. The cookie will go through PHP and then to Mysql, if you have Mysql installed. Which you should have if you are working on a remote server.

www.w3schools.com
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.

Last edited by Mooofasa; 07-22-2004 at 11:27 AM..
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 10-30-2004, 11:51 AM
sdcdesign.co.uk's Avatar
Extreme Talker

Posts: 198
Location: High Wycombe, Buckinghamshire, London
Trades: 0
Hm, if you want to pass a Session from one .NET page to the another .NET page in C# do this =

void Page_Load(Object sender, EventArgs e)
{
Session["user"] = "authenticated"; // change this to whatever you want to recongnise them
}

Thank automatically starts a session, and the next page you can use it to see if they are allowed in or not.
__________________
[ Insert witty, yet highly intelligent signature here ]
sdcdesign.co.uk is offline
Reply With Quote
View Public Profile Visit sdcdesign.co.uk's homepage!
 
Old 11-04-2004, 10:24 PM
vivekar's Avatar
Webmaster Talker

Posts: 612
Trades: 0
Your situation is very very strange.

Your clients reside on a .NET server. (???)
Your server is PHP / MySQL... (???)

Do you mean that your clients use windows IE browser?
If so, the browser will not start the session, your PHP App would init a session when the user visits your PHP App. Let you visitors directly access your PHP app via the browser.

You want to pass a session cookie from a .NET server to a PHP server.
It is equally strange.
IMO, it is not possible. If there is a such thing, I am sorry that I am not yet aware of it.
A .NET session is different and a PHP session is a different world.

When you want to make both worlds talk, you need to use XML (SOAP) format to make both your apps understand what you mean.
__________________

Please login or register to view this content. Registration is FREE
(Active since 2003) |
Please login or register to view this content. Registration is FREE
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Reply     « Reply to ASP .NET PHP Sessions Cookies Authentication Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17066 seconds with 12 queries