User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,470 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,806 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 154 | Replies: 2
Reply
Join Date: Jul 2008
Posts: 21
Reputation: ramseswar is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
ramseswar ramseswar is offline Offline
Newbie Poster

session handling

  #1  
Aug 2nd, 2008
i m not able get the session variables on the other pages.......................
if i use session_start(); it gives error:header already sent...............
kindly help me ..................i m stuck.!!!!iiii!!!!!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2008
Posts: 48
Reputation: Demiloy is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
Demiloy Demiloy is offline Offline
Light Poster

Re: session handling

  #2  
Aug 2nd, 2008
You need to put session_start() on the first line of your code. Otherwise, it won't work.
Reply With Quote  
Join Date: Jul 2008
Location: Sweet India
Posts: 977
Reputation: Shanti Chepuru is on a distinguished road 
Rep Power: 2
Solved Threads: 90
Shanti Chepuru's Avatar
Shanti Chepuru Shanti Chepuru is offline Offline
Posting Shark

Re: session handling

  #3  
Aug 2nd, 2008
if you use session variable in included file,dont put session_start() in included file...
use that line in the main file...
if u dont understand my lines...tel me...

or post your code briefly highlighting the usage of session...
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 2:25 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC