|
Hi friend,
i am working in Asp.net 4.0,C#,IIS 7.0 and OS- windows 7 or window server 2008 R2.
My application lost session value frequently,even i am working on the page.
Following error log is generated in windows Log.
Error Log
1. Event code:1001
Application is starting .
2. An account was successfully logged on.
Subject:
Security ID: SYSTEM
Account Name: CARLTON4$
Account Domain: WORKGROUP
Logon ID: 0x3e7
Logon Type: 5
New Logon:
Security ID: SYSTEM
Account Name: SYSTEM
Account Domain: NT AUTHORITY
Logon ID: 0x3e7
Logon GUID: {00000000-0000-0000-0000-000000000000}
Process Information:
Process ID: 0x284
Process Name: C:\Windows\System32\services.exe
Network Information:
Workstation Name:
Source Network Address: -
Source Port: -
Detailed Authentication Information:
Logon Process: Advapi
Authentication Package: Negotiate
Transited Services: -
Package Name (NTLM only): -
Key Length: 0
This event is generated when a logon session is created. It is generated on the computer that was accessed.
The subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.
The logon type field indicates the kind of logon that occurred. The most common types are 2 (interactive) and 3 (network).
The New Logon fields indicate the account for whom the new logon was created, i.e. the account that was logged on.
The network fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.
The authentication information fields provide detailed information about this specific logon request.
- Logon GUID is a unique identifier that can be used to correlate this event with a KDC event.
- Transited services indicate which intermediate services have participated in this logon request.
- Package name indicates which sub-protocol was used among the NTLM protocols.
- Key length indicates the length of the generated session key. This will be 0 if no session key was requested.
hi, This is sarvesh kumar .
|
|
|
|
|
edit your post and apply formatting where necessary. This is unreadable crap.
Failure is not an option; it's the default selection.
|
|
|
|
|
How frequently? What is set in config file? IIS?
Check them and make sure they are in sync. Also, if application pool recycle time is not less than the session timeout configured time.
|
|
|
|
|
pooling=true;Min Pool Size=20;Max Pool Size=200;Connect Timeout=120;
<sessionstate mode="InProc" cookieless="false" timeout="50">
i have used web.confing setting. but session value lost.
---how to set sync..
hi, This is sarvesh kumar .
|
|
|
|
|
Member 3789173 wrote: My application lost session value frequently,even i am working on the page.
I think the session default is 20 minutes. Yes the session is going to drop if you exit debug when working on the application.
Your posted content has nothing to do with your question, why did you post it? Looks like a homework assignment to me.
|
|
|
|
|
<sessionstate mode="InProc" cookieless="false" timeout="50">
i have already set time out of session.
hi, This is sarvesh kumar .
|
|
|
|
|
Well session values just don't get lost. Either the web server destroys them, or you destroy them in code.
All I can think of is that your session value never got set, or you tried to set a value that could not be set.
I remember some session values being stored in cookies, but I can't remember the details.
On a cluster, the server that sets the session value, will not pass the session value to other servers in the cluster, unless you use a shared session such as sql server.
So your stuck unless you post some code, creating the value, and code destroying the value, and describe how your using the session and for what purpose.
|
|
|
|
|
you can set your Session Timeout Time in IIS setting.
- Happy Coding -
Vishal Vashishta
|
|
|
|
|
<sessionstate mode="InProc" cookieless="false" timeout="50">
<add name="DBConnectionString" connectionstring="Data Source=192.168.1.11;Initial Catalog=DbTest;Persist Security Info=True;User ID=sa;Password=password@123;pooling=true;Min Pool Size=20;Max Pool Size=200;Connect Timeout=120;">
hi, This is sarvesh kumar .
|
|
|
|
|
It is convinient for me to install oracle client.
But my client don't want to install oracle client in web server.
Is there any way to connect and insert to oracle server without oracle client?
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
|
thanks for answer.
It is really helpful for me.
Have a nice Day.
And I also find blow link to connect oracle database without installing oracle client.
But I don't know that it is working.
http://omegacoder.com/?p=445[^]
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
Hi,
i want to get a list of yahoo and google groups in my asp.net application,any help will be a kindness.
Muhammad Rashid
|
|
|
|
|
I answered this in Q&A.
Programming is work, it isn't finger painting. Luc Pattyn
|
|
|
|
|
I got an answer to my question, Return Current View From Different Controller (MVC Log On Control), and the comments aren't a very good place to discuss that, so I thought I'd bring the discussion here.
Keith Barrow wrote: That's the first problem, you should only re-direct if the login is a success.
Right, that was only there for demonstration purposes. The examples I was toying around with on my computer returned a variety of things, but I wanted to keep it simple.
Keith Barrow wrote: If the login fails you should return a view with the "failure" information
That is the idea. I currently have validation rules set on the model using attributes (e.g., [Required]). The idea is that the validation summary will display that, but the exact method I use to display failure info is only of ancillary importance.
Keith Barrow wrote: there is no way to send the information safely to the client without encryption (even ViewState can be read)
The validation mechanism only needs the form data to validate against, and the result can be constructed based on the success or failure of the validation.
Keith Barrow wrote: Anyway, having done this, if you try and navigate to /home/index you'll get the login page and the Query string posted back to the server will have /home/index as the target
Right, I already know how to do that. The whole point of my question is how to avoid having an extra page. I want the login control to be inline on all pages (or most, at least). And I want it to be inline after postback (that is, I don't want the URL to change). And I don't want to use AJAX (that's probably my only real solution, but I'm trying to find a more "pure" solution).
|
|
|
|
|
AspDotNetDev wrote: but I'm trying to find a more "pure" solution).
You can do anything you want, but if you compromise security, then people won't use your website. People are pretty smart now days, and won't enter a username and password unless they see the lock icon.
If there was a more pure solution, it would of been offered.
|
|
|
|
|
jkirkerx wrote: if you compromise security, then people won't use your website
You mean like this website?
I am just learning MVC, and any example code I give is contrived and over simplified, purposely excluding any best practice in favor of clearly communicating the actual problem. Any interpretation of techniques other than those being asked about is pretty unproductive. In case you are curious, the issue being asked about is how to make reusable components in MVC... the login control is only an example.
jkirkerx wrote: If there was a more pure solution, it would of been offered.
Before or after I asked the question?
|
|
|
|
|
touche, good point made
I was under the impression that you wanted to make the login process more pure.
I made a server control and complied it as a dll, and I just drop it in the bin and make reference and call it. The control does an auto shift first using pre-init to ssl, and shifts back out on page change.
|
|
|
|
|
Hello
I need to develop a simple website on which pdf files can be hosted and the user can search and download those file. Its like online journal website for better understanding have a look at the website below we need a clone for the same with some reduced fucntionality.
Its more or less like a Periodicals Subscription & Management System if this could help in understanding it better.But again I need it with some reduced functionality.
http://jpronline.info/index.php/jpr/[^]
What should be my starting point to go about the solution for this. I am also confused about technology I should use. I want to make it as simple as it can be don't want to end up complicating a simple task. So, please suggest the simplest approach to build the solution and perquisites for the same.
Thanks
|
|
|
|
|
|
it is possible to utilise msflexgrid in vb.net 2.0.
if yes then how
please answer this quition soon.
|
|
|
|
|
It is possible to use MS Flex Grid in Vb.net. Since MS-Flex grid is a Com component. You need to Convert that first into dotnet component using AxImp.exe(from command line) or if
you are using Visual Studio.Net Add reference to the MS-flex Grid COM component.Visual studio automatically converts that into .Net component.
source: is it possible to use flexgrid in vb dotnet?[^]
|
|
|
|
|
I have a ASP.NET(3.5/C#) Web Application. I want to access this application in Smart phones and tablet computer. So please help me on this. What are the changes required?
My project is a Dashboard project. We are using DonNetCharting controls (This is a Third party dll) for generate charts. There is a minimum use of CSS. So please suggest me, what I have to do in this?
DevPintu
|
|
|
|
|
Have to display the details after the click event of the link button from the dynamically generated literal control.
|
|
|
|
|
please elaborate. And it would be better with code.
Help people,so poeple can help you.
|
|
|
|