Question about The PHP Group PHP

1 Answer

Logout problem i m not be able to logout with destroing session

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 3 Answers

Hey,
what code are you using to destroy the session?

should look something like this
e.g. getting rid of email session
<?php
unset($_SESSION['email']);
?>

Posted on Feb 06, 2009

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How do I make sure that my email cannot be opened unless sign in?


you can logout your session then no one should be able to login without your password

Aug 26, 2014 | Computers & Internet

1 Answer

Yahoo mesenger will not close after i log off


double tap home key and slide app up from this view to close., this should resolve the issue of won't logout or fully close session state issue is caused by having application still open in background after logout. then reboot device to ensure remnant account settings are not cached in memory

May 12, 2014 | Apple iPhone 5S

1 Answer

Facebook page is not fully displayed and not able to logout


Hello there,
I would suggest you clear your cache. It seems that one session is hanging that is why you are having the error. Depending on your browser, you have to initiate clearing all cookies and cache files.
Good luck!

Apr 07, 2011 | Computers & Internet

5 Answers

Im logged in on facebook on automatic and cant log out please could some one help me to log out thanks


Up at the top right, click on Account and then Sign Out. Make sure next time you log in you don't have the box checked to keep you logged in.

Mar 01, 2011 | Computers & Internet

1 Answer

Change from mine to my husband. How to get to new sign on?


Logoff or logout from current session first!

Feb 09, 2011 | Computers & Internet

1 Answer

My email ID is- mona_punjabi1286@yahoo.com. I unable to logout from my email account. when i am clicking on sign out, its say wait and after some time- page cannot be displayed is reflecting.


Hay! Mona,
This is Neeraj Singh from Allahabad. I found your problem via FIXYA.com

"My email ID is- mona_punjabi1286@yahoo.com. I unable to logout from my email account. When I am clicking on sign out, it’s say wait and after some time- page cannot be displayed is reflecting. "

If you unable to logout from your mail then you can restart your PC, Your all start session will be end automatically and you are able to safely logout from your mail.

These problems occur while server going to bad response.

May 31, 2009 | Microsoft Windows Vista Home Premium...

2 Answers

How to logout from outlook express


You need to disconnect your session. Make sure the authentication method is set to user/password and not based on your windows credentials automatically. This will force anyone trying to access a mailbox to input their credentials.

May 04, 2009 | Computers & Internet

1 Answer

Clarification


are you saying you're switching from a session variable to a cookie?

delete the cookie altogether by setting the expiration to a time in the past (negative value). don't forget that you'll then have to reload a page in order to reread the cookie data.

so if you have a cookie with a logged_in value = true, and you set it to logged_in value = false, you're still logged_in = true, until you reload that page (or another page) and it rereads the cookie data and now determines that logged_in = false.

make sense? write the logged_in=false to the cookie, then force a url redirection to reload the page is my suggestion.

Jan 13, 2009 | The PHP Group PHP

2 Answers

Logout script with session management in php5


just create a logout.php script with the following

<?php
session_start();
session_destroy();

header("Location: index.php");
?>

Have your logout button/link/whatever just open that page which connects to the session with session_start. Session destroy does exactly what it sounds like... it unsets all session data and tells the server to end the session. The header request then just re-directs the user to whatever page you want after (just change out index.php)

Dec 30, 2008 | The PHP Group PHP

Not finding what you are looking for?
The PHP Group PHP Logo

Related Topics:

94 people viewed this question

Ask a Question

Usually answered in minutes!

Top The PHP Group Computers & Internet Experts

dhnguyen

Level 2 Expert

231 Answers

Robin Hill
Robin Hill

Level 3 Expert

1262 Answers

Mike

Level 3 Expert

4332 Answers

Are you a The PHP Group Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...