473,406 Members | 2,345 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,406 software developers and data experts.

java apps and php apps sharing sessions

Does anyone have any experiences to share regarding this?

we run a ColdFusion/PHP/Java(cocoon) environment and I'll probably
figure out a way for all apps to be able to share sessions. I wanted to
see if there are already some solutions out there before I tackle this.

obviously performance is a major factor (which rules out using a
database). At the moment, I'm thinking along the lines of using the
servlet container's session management... meaning I write a wrapper
servlet which can be called by PHP and ColdFusion.
Jul 17 '05 #1
2 3191
Hi Terence,

JIC you must tackle this yourself: I guess the easy part will be to make
php and java to use the same session ids. The hard part will be to share
the data in the session. It seems to me that
http://www.php.net/manual/en/functio...ve-handler.php
may be usefull for this. You may save the data in XML if you need
flexibility, or csv if the data's structure is simple. But shared memory
will definetly be faster - see
http://www.php.net/manual/en/ref.session.php, note under "Requirements".

Greetings,
Henk Verhoeven.

Terence wrote:
Does anyone have any experiences to share regarding this?

we run a ColdFusion/PHP/Java(cocoon) environment and I'll probably
figure out a way for all apps to be able to share sessions. I wanted to
see if there are already some solutions out there before I tackle this.

obviously performance is a major factor (which rules out using a
database). At the moment, I'm thinking along the lines of using the
servlet container's session management... meaning I write a wrapper
servlet which can be called by PHP and ColdFusion.


Jul 17 '05 #2
Thanks for the info.

session-set-save-handler() is a good place to start.

Henk Verhoeven wrote:
Hi Terence,

JIC you must tackle this yourself: I guess the easy part will be to make
php and java to use the same session ids. The hard part will be to share
the data in the session. It seems to me that
http://www.php.net/manual/en/functio...ve-handler.php
may be usefull for this. You may save the data in XML if you need
flexibility, or csv if the data's structure is simple. But shared memory
will definetly be faster - see
http://www.php.net/manual/en/ref.session.php, note under "Requirements".

Greetings,
Henk Verhoeven.

Terence wrote:
Does anyone have any experiences to share regarding this?

we run a ColdFusion/PHP/Java(cocoon) environment and I'll probably
figure out a way for all apps to be able to share sessions. I wanted
to see if there are already some solutions out there before I tackle
this.

obviously performance is a major factor (which rules out using a
database). At the moment, I'm thinking along the lines of using the
servlet container's session management... meaning I write a wrapper
servlet which can be called by PHP and ColdFusion.


Jul 17 '05 #3

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

Similar topics

47
by: Theatre Mgmt | last post by:
Sun project seeks to solve Java memory, execution issues http://story.news.yahoo.com/news?tmpl=story&u=/infoworld/20050325/tc_infoworld/58059&e=1&ncid= San Francisco (InfoWorld) - Sun...
47
by: Alan Brown | last post by:
As a newbie I would like to ask what the difference in application (not details) is between C++ and Java. In what situations would you use C++ in preference to Java and vice versa? I am not...
8
by: Steven T. Hatton | last post by:
I've had an idea kicking around in my head regarding how to create a library of classes (templates?) that provide the same kind of functionality as do Java classes which all derive from the UBC...
4
by: Daniel | last post by:
Hi I am having a problem sharing session between SSL and non-SSL asp.net pages I have F5 BigIP with sticky sessions working fine, but the problem is tha sticky session applies at the port level...
3
by: Mark | last post by:
Ok, I know that .net inherently does not share session data across asp.net projects, but is there any decent work around to this. We already have a big chunk of our application using the asp.net...
3
by: Selden McCabe | last post by:
I have an old ASP project, and I'm adding some functionality in ASP.Net. I stuff some information into Session variables in the ASP page, then redirect to the ASP.Net page. But when I pull up...
4
by: qube3 | last post by:
We have applications written by JSP/Servlet and ASP.NET. All our future development would be based on ASP.NET. We wants to develop a single user interface so that users would not be aware that...
10
by: Ben | last post by:
This is not a troll post. I am doing research on my own too but could use your guys/gals help. As mentioned in prev thread our company is about to embark on building a large scale web based...
8
by: tenxian | last post by:
Is PHP more suitable for developing an interactive website than Java/ J2EE?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.