By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,460 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

Want to use a dynamic session variable

P: 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
Share this Question
Share on Google+
3 Replies


Markus
Expert 5K+
P: 6,050
I'm sorry I don't understand your problem.

Can you explain a little more please?

Kind regards.
Aug 19 '08 #2

P: 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

P: 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

Post your reply

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