There is fourth way to do this.

Create a asp.net page that just accepts a form post only. whenever u r
creating a PHP session, using curl, call this page from PHP with all
session data that you need to use in ASP.NET.

In ASP.Net just read the request object and create necessary items.

now you have both ASP.NET and PHP sessions created.

This is not recommonded way. I recommend the option 1 that you specified.
but since your client will not accept modification, the above said way can
help in a big way

thanks



On Tue, Apr 2, 2013 at 8:34 PM, Aman Sharma <[email protected]>wrote:

> Hi,
>
> I have two applications on different servers. One application is on LAMP
> environment and other one is on ASP.Net 4.0 with IIS7. Main application is
> in PHP whereas ASP.Net application is just a module of PHP application.
>
> Both of the applications would be sharing same Database which is in MySQL.
>
> I need to share sessions across the servers. Has anyone done this before?
> I have few thoughts on this -
>
> 1. Create Seesion table in MySQL database and let PHP and ASP.Net
> read/write session into this table. *=> For this PHP code would need to
> be changed. Client may not be agreed for this. *
>
> 2. Since PHP stores sessions in file, write web service on PHP server
> which would read/write session details to the session files. ASP.Net
> Application can consume this service to read/write sessions.Service would
> accept  "PHPSessionId" as an input parameter.
>
> 3. Give direct access to ASP.Net application to read/write PHP Session
> files which are on PHP server. *=> Not sure giving permission to session
> files would be a great idea.*
> *
> *
> *
> *
> Looking forward your advice whether any point mentioned above makes sense
> or any other best suits as per your experience.
>
>
>
> Thanx.
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
> Web Services,.NET Remoting" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
> or visit the group website at http://megasolutions.net
>
> ---
> You received this message because you are subscribed to the Google Groups
> "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
> Services,.NET Remoting" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
with luv,
Albert Arul Prakash
http://www.bepenfriends.com/ a free online dating web site
http://www.facebook.com/yourdatingguru - your dating guru
There are only 3 colors, 10 digits, 26 letters, 7 notes and 118 elements;
its what we do with them that's important.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

--- 
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to