473,399 Members | 3,919 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,399 software developers and data experts.

update session variable between PHP and asp.net

i have to do the page intergration with PHP in my asp.net application. if
asp.net update one Session variable, can PHP also use it or vice versa? (of
course, we agreed to use the same session variable before).
Aug 13 '08 #1
4 1313
It happens that grey formulated :
i have to do the page intergration with PHP in my asp.net application. if
asp.net update one Session variable, can PHP also use it or vice versa? (of
course, we agreed to use the same session variable before).
There is no way to directly share sessions between php and asp.net. But
this question is also asked a lot for asp/asp.net integration and I
suspect that you can use the same tricks. See if you can find something
along that line.

Hans Kesting
Aug 13 '08 #2
"grey" <er*****@hgcbroadband.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
I have to do the page intergration with PHP in my ASP.NET application. If
ASP.NET updates one Session variable, can PHP also use it or vice versa?
No.

Your only option would be to use some sort of common storage mechanism,
probably a database...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 13 '08 #3
then can i use "cookie"?
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:OX**************@TK2MSFTNGP05.phx.gbl...
"grey" <er*****@hgcbroadband.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I have to do the page intergration with PHP in my ASP.NET application. If
ASP.NET updates one Session variable, can PHP also use it or vice versa?

No.

Your only option would be to use some sort of common storage mechanism,
probably a database...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 14 '08 #4
grey was thinking very hard :
then can i use "cookie"?
For a few small values, you could try that. But only if the php pages
and the asp.net pages are on the same domain, else they would be unable
to receive each other's cookies.

Hans Kesting
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:OX**************@TK2MSFTNGP05.phx.gbl...
>"grey" <er*****@hgcbroadband.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>I have to do the page intergration with PHP in my ASP.NET application. If
ASP.NET updates one Session variable, can PHP also use it or vice versa?

No.

Your only option would be to use some sort of common storage mechanism,
probably a database...
-- Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 14 '08 #5

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

Similar topics

11
by: doltharz | last post by:
Please Help me i'm doing something i though was to be REALLY EASY but it drives me crazy The complete code is at the end of the email (i mean newsgroup article), i always use Option...
2
by: Mig29 | last post by:
For some reason I'm unable to update a session variable btween pages. I can read them after I set in global.asa and I can change its value within the same script but when I go to another page, the...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
5
by: Andy G | last post by:
I have a registration page that captures 75% of the users data. After they enter that info they are redirected to one of two pages depending on how they answered a question on the registation...
5
by: juan | last post by:
Hello, I have a web project in Visual Basic 2005. I want to create a session variable in the "global.asax" file as an array of strings type. The syntax I use is the following: ...
4
by: Don Miller | last post by:
I am using a Session variable to hold a class object between ASP.NET pages (in VB). In my constructor I check to see if the Session variable exists, and if it doesn't, I create one and populate it...
17
by: Control Freq | last post by:
Hi, Not sure if this is the right NG for this, but, is there a convention for the variable names of a Session variable? I am using .NET 2.0 in C#. I am new to all this .NET stuff, So, any...
2
by: Divya Khullar | last post by:
Is there a way of updating session variable in JS.
1
by: rahullko05 | last post by:
Q1.Hello guys i'm trying to make a function named as "updateSession()" to assign values in session variales. Also the function should have two parameters. A. session variable key name that neesd to...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.