Hi

I have the following

$_SESSION('userid') = true;

How is it i would get the user to logout?
I guess by deleting the session?

Thanks

Use the following:

session_destroy();

That will 'log the user out'.

Thats great thanks

and thankyouu for th quick reply

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.