Rank: Advanced Member
Groups: Member
Joined: 2/6/2009(UTC) Posts: 55  Location: Wroclaw
|
Hi.
I need to restrict some parts of the website. I know, I can use Control but which one 34 or 43? And how to customize it? Little description will be great ;)
thx |
|
|
|
|
Rank: Administration
Groups: Administration
Joined: 10/8/2008(UTC) Posts: 190  Was thanked: 1 time(s) in 1 post(s)
|
Hi,
control 34 LoginControl.ascx is a control for users login in by there cms-login. This means only users which are allowed to login in the cms(back-end) can login in the website.
Control 43 WebLoginControl.ascx is a control which allows users specified in a DBtable(username password) to login
you can manage (web)login settings by Home/(web)login(s) in the cms. [Tabelnaam Klanten (volledig)] = "table name customers(Full)" in English Example(CIDU_Users) [Veldnaam Klant Email (volledig)]= "Fieldname customer (Full)" Example(CIDU_Users.E_Mail) [Veldnaam Weblogin paswoord (volledig)]= "Fieldname weblogin password" Example(CIDU_Users.Password) Fieldname Weblogin can be the same as the e-mail address if you like.
Once you enabled (web)login active, you have the possibility to enable this login by every text/view/menu item etc.
Customizing this (web)login you can do in the webcreater. Control Weblogin/Control Login
I hope this will be helpfull
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 2/6/2009(UTC) Posts: 55  Location: Wroclaw
|
It was helpfull :)
but I've got more questions about Control 43.
How to logout? For example after customer log in in I want to show button "Logout".
How to give rights for users? Example: some users can see some Freetext and some of them can't.
thx
|
|
|
|
|
Rank: Administration
Groups: Administration
Joined: 10/8/2008(UTC) Posts: 190  Was thanked: 1 time(s) in 1 post(s)
|
Hi greg, De logout control is very easy, Just make sure you have a control which removes some session Code:pbw.Set_CustomerId_cookie(httpcontext.current.session, -1, "")
httpcontext.current.Session("PBWEB_LOGIN") = ""
httpcontext.current.Session("PBWEB_LOGINID") = ""
You can do this by a link of with a button. I think only for weblogin, the first row of the example should be enough then other two ar user for shopusers, Or it is the other way arround, I'm not sure but you can test it or just remove all sessions. Creating a freetext which is only visible for some users is a little more difficult. first you have to make sure you have the id of the logged in user Code:Dim CustomerId as integer = Cint(pbw.Get_CustomerId_cookie(session))
CustomerId is now the ID in de ID-field for the logged in user. now you can create some code which gets some tekst or data depending on de logged in user Code:
If CustomerId=4 or CustomerId=8 then
Controlplace.innerHTML="Sometext"
end if
you can ofcourse use a query to get some text from the contenttexts Code:
"SELECT [TEKST] FROM [" & CID & "_TEKSTEN] Where ID=4"
Cid = the Cid of de currentdomain, 4 = the id of the text. for more information about reading database read my other post http://forum.sienn.com/Default.aspx?g=posts&t=32May this will help
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 2/6/2009(UTC) Posts: 55  Location: Wroclaw
|
Hi,
I would like to ask you about session time. Default time is very short so how I can change it for unlimited? |
|
|
|
|
Rank: Sienn Developer
Groups: Administration
Joined: 10/8/2008(UTC) Posts: 25  Location: Netherlands
|
Default session timeout is 20 minutes. This can be overruled in the web.config as following:
<sessionState mode="InProc" timeout="60">
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 2/6/2009(UTC) Posts: 55  Location: Wroclaw
|
|
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 2/6/2009(UTC) Posts: 55  Location: Wroclaw
|
I've check this now and it doesn't work.
In what section I should use it in web.config? |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Sienn Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close