473,385 Members | 1,492 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,385 software developers and data experts.

Sharing session variables?

Hi

A friend of mine use PHP sessions to keep track of user data on the
server. The problem is that some of the SELECT queries are common to
all users, but apparently, session data cannot be shared among users.

Is there a way to share the output of a SELECT?

Thank you.
Mar 12 '08 #1
2 2069
On Mar 12, 6:41 pm, Gilles Ganault <nos...@nospam.comwrote:
Hi

A friend of mine use PHP sessions to keep track of user data on the
server. The problem is that some of the SELECT queries are common to
all users, but apparently, session data cannot be shared among users.

Is there a way to share the output of a SELECT?

Thank you.
Session data typically can't be shared between users -- that's one of
the reasons they're very effective.

Just store the result somewhere else. You can serialize it and write
it to a file or use something like memcached. Then you just check if
the result you're looking for is in the cache. If it is you use it;
if it isn't you hit the database then store the result.
Mar 12 '08 #2
On Wed, 12 Mar 2008 15:47:37 -0700 (PDT), ZeldorBlat
<ze********@gmail.comwrote:
>Just store the result somewhere else. You can serialize it and write
it to a file or use something like memcached.
I'll read up on serializing data, or using a Memcached daemon. Thanks.
Mar 12 '08 #3

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

Similar topics

1
by: Greg Bryant | last post by:
I'm trying to extend an existing site written in CF. We're going to move it to PHP at some point in the near future, but in the meantime, I'd like to add some minor new features, and can steal...
3
by: Mladen Gogala | last post by:
How can I share session registered variables between different processes? Here is my problem: File 1: ----------------------------------------------------------------------- <?php...
3
by: Amit S. Jamgade | last post by:
Hi All, I am trying to share the session between classic ASP and ASP.Net application. For session sharing I used the method available on this link: http://msdn.microsoft.com/library/default.asp?...
3
by: Hardik Shah | last post by:
Hi, I am calling an ASP.Net page from an ASP classic application but need the .Net page to have access to ASP classic's session variables. I am using HTTPWebRequest to call ASP classic page...
4
by: Cowboy \(Gregory A. Beamer\) | last post by:
Background: ------------- The idea started as a single sign on type of application. Having tested it before, I knew we could institute single sign on using the same Authentication Cookie name (in...
3
by: grooby | last post by:
I would like to develop an asp.net Web application using muliple web projects under one solution file and share the session information between web applications( or projects). Is this possible?
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: W Akthar | last post by:
Hi, I need to pass session state variables across different web applications. Firstly is this possible and secondly can someone show me how please??
2
by: Guy | last post by:
Is there a way to prevent new browsers windows from sharing session variables with the original window? Our team has an ASP.Net app that lets users analyze portfolio risk given certain portfolio...
4
by: abcd | last post by:
I have an ASP application. It instantiaties some COM components and we put those COM components in Session variables...COM components have license restrictions...We have written new ASPX page ( for...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.