473,395 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

warning:session_destroy() Trying to destroy uninitialized session

1.session_destroy() Trying to destroy uninitialized session
2.Cannot modify header information - headers already sent by (output started at C:\xampp\xampplite\htdocs\backup\logout.php:3)
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. session_destroy();
  3. header( 'Location: http://localhost/backup/login.php');
  4. ?>
exicuting the code i got this type of warning
can someone explain what is unitialized session
Oct 12 '10 #1
3 5929
Dormilich
8,658 Expert Mod 8TB
can someone explain what is unitialized session
using session functions without calling session_start() beforehand
Oct 12 '10 #2
Markus
6,050 Expert 4TB
And for the second error, which is created by the first error, read this.
Oct 12 '10 #3
thanx a lot sir
Oct 13 '10 #4

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

Similar topics

0
by: _mario.lat | last post by:
for ending a session I go to a page: destroysession.php and all it's right: I mean, all variable of session are destroied! BUT when I go to another page a new session (should) be created BUT whit...
3
by: Pete | last post by:
I have a site which is using sessions to pass data from one page through to the next. The problem that I have is that there are only two places where the session could/should be destroyed. This...
3
by: Peter Redding | last post by:
Forgive me if this doesn't make too much sense but I've been working on this project all day and my brain is a bit fried. To make some of my code more readable I made a file (called urls.inc)...
3
by: Derek Fountain | last post by:
The documentation says session_destroy() "destroys all of the data associated with the current session". Um, like what? The docs further say that you should remove all information in the _SESSION...
8
by: TristaSD | last post by:
Hi, I'm trying to tweak the logout script on my web projects. When I point users to a logout.php page containing the session_destroy() function, I get the "Trying to destroy uninitialized...
1
by: Shun | last post by:
Hello How to destroy an session thanks Shun
1
by: ijevsk | last post by:
I have asp page of my system and when I click on the link I want to open new login page.If I enter to the system throuth this page my old session is overides. I wont that to have two pages with...
25
by: Jonno | last post by:
Hi I am having a problem with session vars being propagated between pages on this site: http://www.meettheancestors.com/sessiontest/index.php If you enter any user id and password and click Log...
4
by: ddolgoff | last post by:
Hello to everyone, I have a problem of managing a session with cookies and "session_set_save_handler()". I want to use php's built-in session management mechanism with user-level session storage...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.