Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 33
0 members and 33 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
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
The Lyric Archive
Dining Room Furniture

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

Reply
 
LinkBack Thread Tools Display Modes
how to disable cookies
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 11
Join Date: Oct 2004
how to disable cookies - 11-16-2004, 09:04 PM

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
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 260
Join Date: Oct 2004
11-17-2004, 01:44 PM

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.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 11
Join Date: Oct 2004
11-19-2004, 12:24 AM

Quote:
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
Old
  (#4 (permalink))
Moderator
 
Status: Offline
Posts: 260
Join Date: Oct 2004
11-19-2004, 04:05 AM

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
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 11
Join Date: Oct 2004
11-19-2004, 06:10 PM

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




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.2.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