WebSite X5Help Center

 
Björn J.
Björn J.
User

Access user name  en

Autor: Björn J.
Besucht 2875, Followers 1, Geteilt 0  
Tags:: form,username

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?

Gepostet am
5 ANTWORTEN
Anthony A.
Anthony A.
User

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)

Mehr lesen
Gepostet am von Anthony A.
Björn J.
Björn J.
User
Autor

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? 

Mehr lesen
Gepostet am von Björn J.
Anthony A.
Anthony A.
User

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)

Mehr lesen
Gepostet am von Anthony A.
Björn J.
Björn J.
User
Autor

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

Mehr lesen
Gepostet am von Björn J.
Incomedia
Claudio D.
Incomedia

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.

Mehr lesen
Gepostet am von Claudio D.