hi there,
i have started session in my first page(login page). on fulfilling the validations the user is taken to the next page. in the second page, first i check whether session is set or not, and if it is not set the flash an error message to the user that he/she shlould login first. while validating in my login page if all the validations are successful i set a session variable and this variable i check in the next page. now my problem is that even after succesful login my next page is showing that session is not set. please help me fast.thanks in advance
carobee 0 Posting Whiz in Training
Recommended Answers
Jump to Post— tirivamwe 1can u give us the code that u have so that we can see where u are getting it wrong
Jump to Post— richie513 8are you putting session_start() at the top of all the pages that require the session?
Jump to Post— nav33n 472Are you starting the session in page2 ? If your answer is yes, then you need to show us your code. If your answer is no, then start the session ! :)
Jump to Post— nav33n 472are you putting session_start() at the top of all the pages that require the session?
You beat me by few seconds :P
Jump to Post— nav33n 472Then code please !
All 19 Replies
tirivamwe 1 Light Poster
richie513 8 Junior Poster
nav33n 472 Purple hazed! Team Colleague Featured Poster
nav33n 472 Purple hazed! Team Colleague Featured Poster
richie513 8 Junior Poster
carobee 0 Posting Whiz in Training
nav33n 472 Purple hazed! Team Colleague Featured Poster
carobee 0 Posting Whiz in Training
nav33n 472 Purple hazed! Team Colleague Featured Poster
carobee 0 Posting Whiz in Training
nav33n 472 Purple hazed! Team Colleague Featured Poster
carobee 0 Posting Whiz in Training
nav33n 472 Purple hazed! Team Colleague Featured Poster
carobee 0 Posting Whiz in Training
nav33n 472 Purple hazed! Team Colleague Featured Poster
carobee 0 Posting Whiz in Training
nav33n 472 Purple hazed! Team Colleague Featured Poster
carobee 0 Posting Whiz in Training
carobee 0 Posting Whiz in Training
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.