Get support from Xavier Media
It is currently Sun Dec 08, 2013 5:54 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Limit number of logins using Cookie Password Protection
PostPosted: Tue Jan 08, 2008 7:53 pm 
Offline
Rookie (I'm probably spamming)
Rookie (I'm probably spamming)

Joined: Tue Jan 08, 2008 7:47 pm
Posts: 8
Points: 0
Xavier Media Group is too busy to address this question so I'm throwing it out to anyone kind enough to answer...

I would like to limit the number of logins a user can make using the cookie password protection script. Possibly a field in the admin area under "expire" where you can enter a number. This would be different than login attempts ... it would only be a limit on the number of successful logins then the user would be locked out after logging in that predetermined number of times. I would like the pieces of code that would need to be replaced to create this function.

Can this be done or does the codelock prevent a modification like this?

Thanks.


Report this post
Top
 Profile Send private message E-mail  
Reply with quote  
 Post subject: Re: Limit number of logins using Cookie Password Protection
PostPosted: Tue Jan 08, 2008 8:00 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
The codelock is there to protect the code so you can't change the actual code of protection.php.

/Andreas

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Limit number of logins using Cookie Password Protection
PostPosted: Tue Jan 08, 2008 8:14 pm 
Offline
Rookie (I'm probably spamming)
Rookie (I'm probably spamming)

Joined: Tue Jan 08, 2008 7:47 pm
Posts: 8
Points: 0
Does that mean I can't make the change I'm requesting above?


Report this post
Top
 Profile Send private message E-mail  
Reply with quote  
 Post subject: Re: Limit number of logins using Cookie Password Protection
PostPosted: Tue Jan 08, 2008 8:17 pm 
Offline
XavierForum.com Moderator
XavierForum.com Moderator
Member
Member

Joined: Fri Jun 10, 2005 2:51 am
Posts: 110
Points: 0
I'm hoping by "limit" you mean "only x number of logins per 24 hours"? Otherwise if it's "only x login ever" that's a bit weird, but you could just remove their line when they've used the login.

weeble wrote:
Does that mean I can't make the change I'm requesting above?

Correct

_________________
XMG Forum Moderator & Webmaster
Xavier Media™ Australia & New Zealand and Xavier Media™ Europe


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Limit number of logins using Cookie Password Protection
PostPosted: Tue Jan 08, 2008 8:51 pm 
Offline
Rookie (I'm probably spamming)
Rookie (I'm probably spamming)

Joined: Tue Jan 08, 2008 7:47 pm
Posts: 8
Points: 0
Our intention is to protect pages so only one user can access the content a single time. This would prevent users from distributing a login to multiple people. We would rather not monitor and remove a line/login when it has been used.

Do you have another option for this?

Since we cannot make any edits, can we get in the schedule to have a project like this completed? If so, what would it cost?


Report this post
Top
 Profile Send private message E-mail  
Reply with quote  
 Post subject: Re: Limit number of logins using Cookie Password Protection
PostPosted: Wed Jan 09, 2008 4:41 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
I would suggest that you search for a programmer that can write that application for you at getafreelancer.com.

/Andreas

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Limit number of logins using Cookie Password Protection
PostPosted: Wed Jan 09, 2008 7:28 pm 
Offline
XavierForum.com Moderator
XavierForum.com Moderator
Member
Member

Joined: Fri Jun 10, 2005 2:51 am
Posts: 110
Points: 0
weeble wrote:
Our intention is to protect pages so only one user can access the content a single time. This would prevent users from distributing a login to multiple people. We would rather not monitor and remove a line/login when it has been used.

Do you have another option for this?

Since we cannot make any edits, can we get in the schedule to have a project like this completed? If so, what would it cost?

Easy! You need a database for this: On authenticating the user, you can set a 'logged_in' row (or something as such) to '1' or 'yes', and then upon logout set it back to '0' or 'no'. On the authentication part if you put an if statement stating if this 'logged_in' row for the user that was entered is equal to 1/yes then don't proceed and advise them that they are already logged on elsewhere. The problem with this is that the user MUST use the log off link to log off.

bylla wrote:
I would suggest that you search for a programmer that can write that application for you at getafreelancer.com.

/Andreas

I might be able to help out :)

_________________
XMG Forum Moderator & Webmaster
Xavier Media™ Australia & New Zealand and Xavier Media™ Europe


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Limit number of logins using Cookie Password Protection
PostPosted: Wed Jan 09, 2008 7:51 pm 
Offline
Rookie (I'm probably spamming)
Rookie (I'm probably spamming)

Joined: Tue Jan 08, 2008 7:47 pm
Posts: 8
Points: 0
Julz,

Can this modification be made with codelock in place?

I'm not sure if we can rely on all users clicking logout? Could a cookie expiring automatically logout the user?

Would this also impact the administrative user?


Report this post
Top
 Profile Send private message E-mail  
Reply with quote  
 Post subject: Re: Limit number of logins using Cookie Password Protection
PostPosted: Wed Jan 09, 2008 10:10 pm 
Offline
XavierForum.com Moderator
XavierForum.com Moderator
Member
Member

Joined: Fri Jun 10, 2005 2:51 am
Posts: 110
Points: 0
weeble wrote:
Can this modification be made with codelock in place?

No, codelock protects the script's code and prevents modifications from being made, as well as the source code being redistributed. To make modifications, you will need to have your own script created.

weeble wrote:
I'm not sure if we can rely on all users clicking logout? Could a cookie expiring automatically logout the user?

Yes, but a workaround for the one-login-at-a-time provision could be quite tricky.

weeble wrote:
Would this also impact the administrative user?

I'm not sure what you mean.

_________________
XMG Forum Moderator & Webmaster
Xavier Media™ Australia & New Zealand and Xavier Media™ Europe


Report this post
Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Registered users: No registered users


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Portal » Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[
SEO MOD © 2007 StarTrekGuide ]