Access user name
Auteur : Björn J.
Visité 2840,
Followers 1,
Partagé 0
If I use access management and add users and they login with username and password, can I read the username in a php-script? if so, how?
Posté le
you can create for them username and pass in step 4> access managment> user tab.
other than that, all the username and passwords will be stored in "access.inc" inside your "res" folder (after you publish your website) that file will not show inside your preview folder!
if this post is the correct answer, please mark this answer as correct answer.
------------------------------------------------------------
Good Luck
http://www.wdesigners.us (new)
http://www.usx5.com (coming soon)(Sign up)
Auteur
ok I understand that they are kept in that file. But what I want to know is if I can retrieve what username they used to login?
script does not keep track of users, what you can do is to create a username and pass for each one and also create their own page, let say you have 3 clients, you can create 3 different pages with 3 different username as pass, and they only have permission to view their own page and not anybody else.
I don't know what exactly you are planning to do, if you tell me about your plan I could help you even more.
if this post is the correct answer, please mark this answer as correct answer.
------------------------------------------------------------
Good Luck
https://nuluhost.com (fully compatible with websitex5 program)
http://www.wdesigners.us (new)
http://www.usx5.com (coming soon)(Sign up)
Auteur
Hi,
I am gathering people, for now 32 and counting, they will hopefully be several hundreds.
We have a database with som information and I want to let them edit their own data but not be able to touch others. So I wanted to check who they logged in as and map that to the right row in the database and display that for editing and submitting.
/Björn
Hello Björn J.,
There is this script which let's you display the name of the logged user:
<?php
$pa = new imPrivateArea();
$user = $pa->who_is_logged();
echo $user['realname'];
?>
I hope this helps.