logo
Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
gregfd  
#1 Posted : Monday, April 6, 2009 3:40:26 PM(UTC)
gregfd

Rank: Advanced Member

Reputation:

Groups: Member
Joined: 2/6/2009(UTC)
Posts: 55
Man
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
Certico Websolutions - www.certico.pl

Wanna join the discussion?! Login to your Sienn Forum forum account. New Registrations are disabled.

bart  
#2 Posted : Tuesday, April 7, 2009 10:47:36 AM(UTC)
bart

Rank: Administration

Reputation:

Groups: Administration
Joined: 10/8/2008(UTC)
Posts: 188
Man

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
gregfd  
#3 Posted : Tuesday, April 7, 2009 12:49:53 PM(UTC)
gregfd

Rank: Advanced Member

Reputation:

Groups: Member
Joined: 2/6/2009(UTC)
Posts: 55
Man
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

Certico Websolutions - www.certico.pl
bart  
#4 Posted : Tuesday, April 7, 2009 3:05:55 PM(UTC)
bart

Rank: Administration

Reputation:

Groups: Administration
Joined: 10/8/2008(UTC)
Posts: 188
Man

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=32

May this will help
gregfd  
#5 Posted : Friday, July 3, 2009 4:29:26 PM(UTC)
gregfd

Rank: Advanced Member

Reputation:

Groups: Member
Joined: 2/6/2009(UTC)
Posts: 55
Man
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?
Certico Websolutions - www.certico.pl
Tijs  
#6 Posted : Wednesday, July 8, 2009 5:40:32 PM(UTC)
Tijs

Rank: Sienn Developer

Reputation:

Groups: Administration
Joined: 10/8/2008(UTC)
Posts: 25
Man
Location: Netherlands

Default session timeout is 20 minutes. This can be overruled in the web.config as following:

<sessionState mode="InProc" timeout="60">

gregfd  
#7 Posted : Wednesday, July 8, 2009 6:35:15 PM(UTC)
gregfd

Rank: Advanced Member

Reputation:

Groups: Member
Joined: 2/6/2009(UTC)
Posts: 55
Man
Location: Wroclaw

huge thx

:)
Certico Websolutions - www.certico.pl
gregfd  
#8 Posted : Wednesday, July 15, 2009 2:24:37 PM(UTC)
gregfd

Rank: Advanced Member

Reputation:

Groups: Member
Joined: 2/6/2009(UTC)
Posts: 55
Man
Location: Wroclaw

I've check this now and it doesn't work.

In what section I should use it in web.config?
Certico Websolutions - www.certico.pl
Users browsing this topic
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.