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

Want to use a dynamic session variable

3
i want to check which all pages are opened each time, by keeping a flag value assigned to a session variable correspondng to that pagename,
the pagename i am retrieving from database
Expand|Select|Wrap|Line Numbers
  1. <?PHP
  2. $_SESSION['var']=$dbdata;
  3. $_SESSION['$_SESSION['var']']=1;
  4. ?>
like this
Aug 19 '08 #1
3 1769
Markus
6,050 Expert 4TB
I'm sorry I don't understand your problem.

Can you explain a little more please?

Kind regards.
Aug 19 '08 #2
kunjoo
3
I'm sorry I don't understand your problem.

Can you explain a little more please?

Kind regards.

what i have is a homepage with menulinks to some other pages which again contain some menulink, now i want to add hitcounter to each pages,
now what i did is i will check the parent page so that hitcount may not increase during any refresh and it will increase only while we take the link through the parent page only

but what my head wants that once he opens IE once and how many times he go to that page through even parent page it should only increment once

that means in one IE window hitcount of that page should increment only once

each page is fetched through a common getPage.php. for that i thought of using sessions to keep along with pagenames, so that i can keep on checking as a flag set
Aug 27 '08 #3
kunjoo
3
I'm sorry I don't understand your problem.

Can you explain a little more please?

Kind regards.

what i have is a homepage with menulinks to some other pages which again contain some menulink, now i want to add hitcounter to each pages,
now what i did is i will check the parent page so that hitcount may not increase during any refresh and it will increase only while we take the link through the parent page only

but what my head wants that once he opens IE once and how many times he go to that page through even parent page it should only increment once

that means in one IE window hitcount of that page should increment only once

each page is fetched through a common getPage.php. for that i thought of using sessions to keep along with pagenames, so that i can keep on checking as a flag set
Aug 27 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ollie | last post by:
okay before anyone says I shouldn't use session state in a web services don't both..... I have 2 web services that both use sesssion state and share the session state between the web services,...
1
by: John Hamm | last post by:
My web application dynamically creates a UserControl and saves it to a Session variable called LastControl. When a postback occurs, I simply load the LastControl and everything works great. The...
4
by: spx27 | last post by:
Does anyone know the best way to handle passing a dynamic menu generated from a login from one asp.net page to another. Would it be better to recreate the menu on each page? Save the menu as a...
3
by: samuelberthelot | last post by:
Hi, In one of my database's tables I have a Header and Footer field, which content is used to create the header and footer of my Master page. Part generated from Header field: <html > <head...
4
by: Mark Rae | last post by:
Hi, I have a site which uses dynamic MasterPages. The selection of the MasterPage to use is determined by an encrypted QueryString. Session_Start looks for the presence of the QueryString,...
1
by: jesibl | last post by:
Hi All, I have an ASP .NET 2.0 web based app which should change content based on a variable passed in the query string. Let's say the variable is called ID and the variations are A, B and C. ...
1
by: sreemati | last post by:
Hi Everyone, I have newly started as a ASP developer. I have been working on some change request and was blogged down with dynamic includes. Eventually I had managed to figure out the problem and...
5
by: Charles Zhang | last post by:
I am creating dynamic web pages according to the user inputs from a web page. For instance, a user typed in a text, I would want the text being the source code of the dynamic page. My...
7
by: bprocopio | last post by:
Please help. I'm stumped. I need to create a dynamic variable in a procedure that will be used to update a variable of the same name in a table. i.e. the name in tblAnalysisScores are...
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:
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...
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.