» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 72
0 members and 72 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on how to disable cookies within the Nuke 7.x - General forums, part of the PHP-Nuke 7.x category; you know if users log into the system and they dont logout just close the browser, next time they go ...


Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-16-2004, 09:04 PM
Junior Member
 
Join Date: Oct 2004
Posts: 11
how to disable cookies
you know if users log into the system and they dont logout just close the browser, next time they go to the site they stayed logged in, can anyone tell me how to disabled cookies
i just want like whoever close the browser they have to relog in, and i want a click option under the log in menu saying click here for automatic log in or something
i know i sound confused but anyone please help me
thanks in advanced
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-17-2004, 01:44 PM
Moderator
 
Join Date: Oct 2004
Posts: 260
At this time nuke doesn't offer anything like this. BUT with some custom coding you can make it. Just change the time the cookie is valid for. This can be done in the YA module.
__________________
read me before posting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-19-2004, 12:24 AM
Junior Member
 
Join Date: Oct 2004
Posts: 11
Originally Posted by genoxide
At this time nuke doesn't offer anything like this. BUT with some custom coding you can make it. Just change the time the cookie is valid for. This can be done in the YA module.
what u mean by the time like umm I can set up a time frame
and after that certain time they would have to log back in
lets say i set up 5 hrs so if they dont log in within 5 hrs they have
re log in after 5 hrs :? sorry just confused

and how do i change the time frame in YA pls help
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-19-2004, 04:05 AM
Moderator
 
Join Date: Oct 2004
Posts: 260
Open modules/Your_Account/index.php
find
Code:
function docookie($setuid, $setusername, $setpass, $setstorynum, $setumode, $setuorder, $setthold, $setnoscore, $setublockon, $settheme, $setcommentmax) {
    $info = base64_encode("$setuid:$setusername:$setpass:$setstorynum:$setumode:$setuorder:$setthold:$setnoscore:$setublockon:$settheme:$setcommentmax");
    setcookie("user","$info",time()+2592000);
}
This is the function to set the user's cookie. as you can see it sets the cookie for 2592000 seconds. Change that value to the one you want. More info for the setcookie function can be found at http://www.php.net/manual/en/function.setcookie.php
__________________
read me before posting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-19-2004, 06:10 PM
Junior Member
 
Join Date: Oct 2004
Posts: 11
thanks bro appriciate your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookies soulshade Site design 6 01-05-2006 03:09 AM
right click disable mikeyb Nuke 7.x - General 0 02-23-2005 07:44 PM
Cookies - Looking for a way to drop cookie. exxxpress Purged Topics 0 06-12-2003 11:32 AM
how disable theme selection by user neo_sable Purged Topics 3 02-13-2003 03:38 PM
Cookies for nuke-poll? zlaxzzor Purged Topics 1 12-21-2002 09:03 PM


All times are GMT -5. The time now is 11:51 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31