473,396 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IIS Session variables / cross-access from PHP <-> ASP.NET

Hi guys, what options are there to use, for example, a string stored in the
Session context by an ASP.NET page, from within, say, a PHP script?
Thanks! - Marco
Nov 18 '05 #1
2 2157
You can share a cookie on the same domain. I'm doing it with a 4D web site
and .NET and it works fine. You have to be part of the same domain though.
You can share across sub-domains as well. For instance, we are using
www.mysite.com and www2.mysite.com. When you create or load the cookie we set
the domain = .mysite.com. You can't really test it from your local machine so
if you have a test environment that follows this format you can test it
there. Basically because you can't create a cookie for a domain if you aren't
part of that domain.

HTH

"Marco Ippolito" wrote:
Hi guys, what options are there to use, for example, a string stored in the
Session context by an ASP.NET page, from within, say, a PHP script?
Thanks! - Marco

Nov 18 '05 #2
Hey ENIZIN, thanks for the tip. :-) Good idea for string values! Guess for
more complex data objects one would always resort to XML serialisation or
even more complex models, right? Sounds like a big shame to have your object
in "session" memory and not be able to point to it and cast it to a PHP
structure.. :-) Or have the PHP wizards already thought about that too?
[always been impressed by their control of COM, for instance!]

"ENIZIN" <EN****@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
You can share a cookie on the same domain. I'm doing it with a 4D web site
and .NET and it works fine. You have to be part of the same domain though.
You can share across sub-domains as well. For instance, we are using
www.mysite.com and www2.mysite.com. When you create or load the cookie we set the domain = .mysite.com. You can't really test it from your local machine so if you have a test environment that follows this format you can test it
there. Basically because you can't create a cookie for a domain if you aren't part of that domain.

HTH

"Marco Ippolito" wrote:
Hi guys, what options are there to use, for example, a string stored in the Session context by an ASP.NET page, from within, say, a PHP script?
Thanks! - Marco

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nhi Lam | last post by:
Hi, I understand that there are 3 modes in which I can configure the SessionStateModule. What I need is an out of process Session State store with fail over support. The "SQL Server Mode" seems...
4
by: Cowboy \(Gregory A. Beamer\) | last post by:
Background: ------------- The idea started as a single sign on type of application. Having tested it before, I knew we could institute single sign on using the same Authentication Cookie name (in...
2
by: MisterKen | last post by:
It appears that I'm losing values for session variables when I move from a page like http://www.my_site.com/catalog.aspx to https://www50.ssldomain.com/my_site/login.aspx and vice versa. Are...
1
by: Fabrício de Novaes Kucinskis | last post by:
Hi all, I have an ASP.net application in which I keep the user login in session variables. Today, with two users accessing simultaneously the application (in different sessions, but...
9
by: Randy | last post by:
Hello, I'm having a strange problem. I've got a .NET web app which uses Session variables. Sometime, not all the time, they get cross threaded...that is...one user will have another user's Session...
2
by: fizbang | last post by:
This should be impossible, but for some reason, people are not getting individual sessions. They start a session. I set the session("application") variable to the unique number generated by an...
1
by: Larry Neylon | last post by:
Hi, I'm working on a VBScript application on IIS6 and I'm looking for some advice about the best way of replacing or improving session variable usage. The application is in a secure extranet...
7
by: Bill | last post by:
I've noticed that in my ASP application that session variables are not carried over from one IE6 open browser window to another. Can anyone tell me how IE can do this? It seems like it's a useful...
3
by: CBKowitz | last post by:
Has anyone encountered this problem? I start debugging my application and the session get reset (as far as I can tell). I then stop and restart and everything is fine. Basically the symptoms...
6
by: =?Utf-8?B?R2Vv?= | last post by:
Hi, I use lots of sessions. I want to clear the unwanted sessions when I leave a page. I cant use ViewState as it will slow down the pages. Could some one help me on this?
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.