Session Across the servers??

33 views
Skip to first unread message

Aman Sharma

unread,
Apr 2, 2013, 11:04:36 AM4/2/13
to DotNetDe...@googlegroups.com
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.

Albert Arul Prakash Rajendran

unread,
Apr 4, 2013, 3:30:57 PM4/4/13
to dotnetde...@googlegroups.com
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



--
--
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 dotnetde...@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopm...@googlegroups.com
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 dotnetdevelopm...@googlegroups.com.
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
There are only 3 colors, 10 digits, 26 letters, 7 notes and 118 elements; its what we do with them that's important.

Cerebrus

unread,
Apr 5, 2013, 7:53:51 AM4/5/13
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
#1 seems like the best overall option but your reservations are valid
regarding it.

Reply all
Reply to author
Forward
0 new messages