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

Discussion in 'ASP .Net' started by Marco Ippolito, Oct 5, 2004.

  1. 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
     
    Marco Ippolito, Oct 5, 2004
    #1
    1. Advertising

  2. 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
    >
    >
    >
     
    =?Utf-8?B?RU5JWklO?=, Oct 5, 2004
    #2
    1. Advertising

  3. 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" <> wrote in message
    news:...
    > 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
    > >
    > >
    > >
     
    Marco Ippolito, Oct 5, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Smythe
    Replies:
    3
    Views:
    1,324
    Jeff Smythe
    Jan 2, 2004
  2. Randy
    Replies:
    9
    Views:
    906
    Randy
    Oct 5, 2005
  3. jason
    Replies:
    0
    Views:
    850
    jason
    Aug 30, 2006
  4. =?Utf-8?B?Um9iSEs=?=
    Replies:
    4
    Views:
    5,414
    =?Utf-8?B?Um9iSEs=?=
    Apr 11, 2007
  5. Rajive Narain
    Replies:
    0
    Views:
    2,064
    Rajive Narain
    Sep 18, 2009
Loading...

Share This Page