Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 02-21-2009, 07:54 AM
Capo64 Capo64 is offline
Contributing Member
 
Join Date: 06-11-07
Posts: 238
iTrader: 0 / 0%
Can a session be disabled for a certain page?

I have two pages with the exact same code:

Code:
<? session_start(); var_dump($_SESSION); ?>

One of them displays everything in the session and the other one shows this:

array(0) { }


Can someone explain that to me? They're both in the same directory, same everything just different file names. Note: one of them is a page that I have been writing for quite some time (could it be cached in some crazy way?) but I replaced the code with the code from the test.php (which works fine).
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 02-21-2009, 08:13 AM
woogley woogley is offline
Contributing Member
 
Join Date: 12-21-08
Location: white House :O
Posts: 275
iTrader: 0 / 0%
can you paste the codes in each page?
 
Reply With Quote
  #3  
Old 02-21-2009, 08:15 AM
Capo64 Capo64 is offline
Contributing Member
 
Join Date: 06-11-07
Posts: 238
iTrader: 0 / 0%
The two pages have identical code (posted above). That's the exact code on both pages.
 
Reply With Quote
  #4  
Old 02-21-2009, 08:20 AM
woogley woogley is offline
Contributing Member
 
Join Date: 12-21-08
Location: white House :O
Posts: 275
iTrader: 0 / 0%
does it have the same url or domain name?

because when you accessed a page using a domain with "www" is a different session without "www".
 
Reply With Quote
  #5  
Old 02-21-2009, 08:21 AM
Capo64 Capo64 is offline
Contributing Member
 
Join Date: 06-11-07
Posts: 238
iTrader: 0 / 0%
Wow, I thought I tried that.. Thanks a lot! That fixed it.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is session stored? can i extend the period a session last? 2939195631902 Coding Forum 1 02-08-2009 09:12 AM
Disabled website rearadmiral Google Forum 3 05-02-2008 09:37 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 01:02 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC