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!!!!!

Recommended Answers

All 2 Replies

You need to put session_start() on the first line of your code. Otherwise, it won't work.

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 a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.