Raised This Month: $ Target: $400
 0% 

Client Info


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 09-27-2012 , 14:49   Client Info
Reply With Quote #1

Hello, its me again.
Im trying to client login system.
client setinfo holds index and password, so index will be like username but its number.
Problem right now is that setinfo can be full and my server can not write him that information.

There are now 2 ways in my system what client can choose

Quote:
[menu]
1. Enter index, password in motd, this way is bad because every connect he need to login and he will need to remember his password and index.
2. Write automatically index and password in config ( so he dont need to login every time )
If 2. fails and setinfo data is exceeded then what i want to give him is

Quote:
[menu] // setinfo is full
1 auto clean setinfo
2 disconnect and comeback with clean setinfo
3 how to clean setinfo by yourself
4 exit // if he choose this then he will have only 1. enter index password in motd, ohter ways kicked.
if he choose 1 then server read all setinfo keys and values what client have
then client can choose what he will remove.
Im always trying to make ohter life much easier by inventing new useful things
The problem is how do i get all setinfo key names and values?
-DareDevil
.Dare Devil. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-27-2012 , 19:11   Re: Client Info
Reply With Quote #2

Quote:
Originally Posted by .Dare Devil. View Post
The problem is how do i get all setinfo key names and values?
Not possible.
__________________
fysiks is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-28-2012 , 04:02   Re: Client Info
Reply With Quote #3

im not sure if the web browser thats in the motd window can handle cookies, but if it can you could use cookies to save the id/password
jimaway is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 09-28-2012 , 05:44   Re: Client Info
Reply With Quote #4

Quote:
Originally Posted by jimaway View Post
im not sure if the web browser thats in the motd window can handle cookies, but if it can you could use cookies to save the id/password
Yup, you can, but you will need other motd to check the cookie.
After that you need sockets/sql base to deliver that info to plugin.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-28-2012 , 05:52   Re: Client Info
Reply With Quote #5

yea the overall "logging in" process will be really slow compared to just get_user_info, but atleast you wont have to worry about the info string being full

also i think it could be done with 1 motd window: you could redirect to other site if cookie is not present, or if possible just make the php script check if cookie exists and then give cookie/get info

Last edited by jimaway; 09-28-2012 at 05:56.
jimaway is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 09-28-2012 , 06:30   Re: Client Info
Reply With Quote #6

Isn't the server MOTD window handled as if it's been sent by the server, not the client? I'm pretty sure you will not be able to create player-specific cookies, but only server-specific.
Backstabnoob is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-28-2012 , 06:35   Re: Client Info
Reply With Quote #7

wat
jimaway is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 09-28-2012 , 06:37   Re: Client Info
Reply With Quote #8

This is not a fact:

The server sets the cookies only for ITSELF, which means, each time you would want to set a new cookie in the motd window, it will replace the last one, meaning you wouldn't be able to store one cookie for each client, which is completely pointless.

Last edited by Backstabnoob; 09-28-2012 at 06:37.
Backstabnoob is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 09-28-2012 , 06:37   Re: Client Info
Reply With Quote #9

I don't understand what you want to do. A Login System ? SteamID isn't enough for that ?
__________________
micapat is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-28-2012 , 06:52   Re: Client Info
Reply With Quote #10

form wikipedia:
Quote:
A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is usually a small piece of data sent from a website and stored in a user's web browser while a user is browsing a website. When the user browses the same website in the future, the data stored in the cookie can be retrieved by the website to notify the website of the user's previous activity.
jimaway is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 08:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode