Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Repeated login dialogues View modes: 
User avatar
Member
Member
cbegg50 - 3/8/2012 5:40:12 PM
   
Repeated login dialogues
While trying to follow the Getting Started guide for the Personal Site, I am repeatedly asked to log in. Sometimes it will let me change an item, then it will return to the logon screen when I try to change the next thing. Is there a timer for a session (set very short!)?

Frustrated Kentico trailer.
Colin Begg

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/9/2012 1:46:48 AM
   
RE:Repeated login dialogues
Hello,

This shouldn't happen. Could you please let me know what version you are using? If you haven't applied a hotfix then I would suggest you to apply the latest hotfix at first to be certain that this isn't a bug which was already fixed.
Could you please also try to reproduce this issue in a different browser (IE, Firefox, Chrome)?
Additionally, please go through this KB article if the session timeout is set up correctly.

Best regards,
Boris Pocatko

User avatar
Member
Member
cbegg50 - 3/9/2012 7:05:10 AM
   
RE:Repeated login dialogues
Running V6.0.4395? It applied several hot fixes during the install. Which one do you mean? It's the same in Firefox on my Mac and this iPAd and in IE9 on Windows 7. Gonna look at the KB article, thanks!

Colin Begg

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/9/2012 7:11:58 AM
   
RE:Repeated login dialogues
Hello,

The latest hotfix has the number 20. In your case you are running the hotfix version 13. Could you please try to apply the latest hotfix package? You don't have to apply all the packages since the hotfix package is cumulative.

Best regards,
Boris Pocatko

User avatar
Member
Member
cbegg50 - 3/9/2012 7:22:50 AM
   
RE:Repeated login dialogues
My forms timeout was 60000 so I reduced it to 60 as suggested. I can't find session.timeout in thenweb part when in the adminstrator screens. Where is it?

User avatar
Member
Member
cbegg50 - 3/9/2012 3:39:31 PM
   
RE:Repeated login dialogues
The hot fix seems to be an executable. I don't own my server (Cyberhostpro Pro do) so I can't run exes. Is it available in any other format?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/10/2012 8:47:59 AM
   
RE:Repeated login dialogues
Hello,

You can run the hotfix on your local environment. The package is basically a zip archive which is unpacked. You then can use the included instructions file to apply it.

Best regards,
Boris Pocatko

User avatar
Member
Member
cbegg50 - 3/10/2012 11:54:14 AM
   
RE:Repeated login dialogues
I couldn't find a Mac Hotfix package, just an EXE file. I can try running it on my BootCamp partition. You say I can then install it to the CyberHost Pro server.

User avatar
Member
Member
cbegg50 - 3/10/2012 4:39:35 PM
   
RE:Repeated login dialogues
OK so I have used the command line Hotfix.exe /deploy=net40site and /deploy=net40app and have two folders with over 1000 files in them, but no explanation of what's next. Do I just FTP them somewhere or what!!

The documentation doesn't say.

Regards,
Colin Begg

User avatar
Member
Member
cbegg50 - 3/11/2012 5:19:14 PM
   
RE:Repeated login dialogues
After not finding specific instructions on how to deploy the hot fix package, I used FTP to transfer the files, with a view to finding some way to run the SQL files once the application restarted. It didn't. I now have a dead website.

Server Error in '/' Application.

Could not load file or assembly 'AjaxControlToolkit, Version=4.1.50927.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'AjaxControlToolkit, Version=4.1.50927.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Next bright idea?

Colin Begg

User avatar
Member
Member
cbegg50 - 3/11/2012 6:40:22 PM
   
RE:Repeated login dialogues
I noticed the file mentioned in the exception is not supplied in the Hotfix, so I retrieved it to the Mac, transferred it to the PC and looked at its properties. Its version started 3.5nnnn so I figured perhaps my site is Asp.net V3.5 so I created the NET35Site Hotfix and uploaded that with FTP. Site seems to be going again. Now to tackle how to run SQL files on my system which doesn't normally allow them.

User avatar
Member
Member
cbegg50 - 3/11/2012 6:54:02 PM
   
RE:Repeated login dialogues
I found a utility in my Web Site Control Panel which allowed SQL to be run if copied and pasted into a text window. The part about the Web Farm failed as I don't have one and I doubt the Free edition would let me! I then copied the last bit to say I have Hotfix 21.

Is that right?

Only guessing, no help anywhere.

Regards,
Colin Begg

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/10/2012 8:48:09 AM
   
RE:Repeated login dialogues
Hello,

You can find examples on setting the session property in this article. The following code needs to be place into a page or user control:

Session.Timeout = 1000; //time in minutes

Best regards,
Boris Pocatko

User avatar
Member
Member
cbegg50 - 3/10/2012 12:00:11 PM
   
RE:Repeated login dialogues
Hi Boris,
I still fail to understand why the session is timing out in the first place. Is it a known bug in Kentico 6 that everyone is suffering with? Will the Hotfix 20 fix it?

User avatar
Member
Member
cbegg50 - 3/10/2012 4:57:33 PM
   
RE:Repeated login dialogues
Following the advice in the article you linked to I set the sessionState timeout parameter to 1000 in Web.Config. Its made no difference. An extra facet of the problem is that each time I click on something that opens a sub-page I have to log in in the sub-page too.

I don't know where to find a Session.Timeout to set.

Regards,
Colin Begg

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/14/2012 3:48:40 AM
   
RE:Repeated login dialogues
Hello,

You don't have to set the session variable in the API if you've set it already in the web.config file.

The hotfix package unpacks into the location:

c:\Program Files (x86)\KenticoCMS\6.0\Hotfix60_21\

In the root there is a Instructions.pdf file available, which needs to be followed when applying a hotfix. I am really not sure, what files did you copy and why your web site isn't working right now, however, as I mentioned, you need to follow the instructions for the hotfix to work. If you haven't created any content yet, tehn I would recommend you to install a fresh site by running the web installer:

c:\Program Files (x86)\KenticoCMS\6.0\Bin\WebInstaller.exe

Please also stick to issue in a forum thread since I am now a bit confused by the many messages. Is the site now working and patched with hotfix 21?

Best regards,
Boris Pocatko

User avatar
Member
Member
cbegg50 - 3/15/2012 1:05:37 PM
   
RE:Repeated login dialogues
I guessed (no instructions in the hot fix) that I had to FTP the resultant file structure and overwrite the existing files on my provider's web site. As I said I managed to find a way to enter the SQL and only the Web Farm part of the HotFix SQL didn't work.

The site does not now throw me off as often, however, each time I access a new form or sub-form, I'm asked to log in again and have to go through the sequence to get back to the form I was using.

Can a fresh install access my existing database as I've done a lot of personalisation to the blog (mainly CSS) to make more room for photos.

I don't have a folder c:\Program Files (x86)\KenticoCMS\6.0\Bin\WebInstaller.exe, only the Hotfix one on the Boot Camp partition of my Mac.

Regards,
Colin

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/16/2012 5:46:28 AM
   
RE:Repeated login dialogues
Hello,

The instructions describe how to create the folder structure on your local PC:
User image

You are right, the instructions don't state that you have to copy them over, so you did the correct thing. However it's odd you've got problems installing the SQL part of the hotfix. Could you please let me know what error message did you get during the SQL execution?

So you are still being logged out if you are working in CMSDesk? Could you please post a screenshot of it so I can see how the application behaves?
This happens on firefox on a MAC?
Additionally, could you please post the web config so I can take a look at your configuration by myself (please remove the connection string credentials and database connection at first)?

Best regards,
Boris Pocatko