How To Find Information About All Sessions For A Web-app / Site

Jul 23, 2010

I am trying to create an admin screen that will give me details about all open sessions in an application/site. I would also like to know how many session objects are active for each of them

Session object gives me info about my current session. How do i find info about all open sessions. How many sessions are active, etc.

View 1 Replies


Similar Messages:

Site Uses Cookies - Need To Switch To Sessions

Nov 17, 2010

My site uses cookies. I need to have it use sessions instead. The reason for this is because there is a third party that needs to connect to it, and it's always requiring 3rd party cookies to be enable in the browser and that is annoying my customers. Is there any other way around this other than switching to sessions?

View 4 Replies

When A Few Users Try To Log Into Site - Their Sessions Are Merging?

Feb 16, 2011

i lunched an asp.net web-site. the main idea in the site is that:the site shows the same page, but on each next button the user clicks, the pictures in the site change randomly. im working with postback and sessions.

i noticed that when a few users try to log into my site - their sessions are merging. meaning, the first picture presented is diffrent but the second picture is the same for all the users, and so on... (moreover, pictures that appears in the begining appearing again even thow i don't allw it in my code)when i tried to debug the site locally, the random function works perfectly and there were no such problems. it haapens only when 2 users and more log into my site.

View 1 Replies

C# - Get Current Sessions For Castle-Monorail Site?

Jan 28, 2011

I'm modifying a Castle-Monorail site that I've inherited and found that it would be useful to see a list of currently online users. Currently there are Filters that determine who can access which parts of the site so I can distinguish logged in sessions from non-logged in sessions. Is there an easy way of getting a list of active sessions so that I could then work out who is logged in?

View 1 Replies

State Management :: Find Out The Sessions That Are Being Set After User Logs In?

Aug 4, 2010

We have take over a classic asp site. Everything works fine, but we are making improvements to some reports and adding new reports, so we are doing this in .NET, with that said, after reviewing the secuirty code, there are 2 sessions that are set and used thru-out the site as part of some of the individual page queries.

I know that the sessions are being populated, because the reports that use those values return records.. now with a new report we are working on, i need to pass those values into my query. But when i try using the session names the page is coming up saying the following:Object reference not set to an instance of an object.

Is there anyway to add something to my page code to see what sessions are actually being created and their values.. maybe im using the wrong variable names.. but the security code is pretty straight forward.. at login, if successful, 2 values are returned and stored in 2 sessions.. i need to use those with my new page.. so trying to figure out why the existing pages work fine with that and my new page does not..

Basically, i'd like to write to the screen the session variables that are being created on the login page.

View 11 Replies

State Management :: Clear Sessions If The User Navigates Away From The Site?

Jun 17, 2010

I am wondering if it is possible to clear a session variable if the user navigates away from my site.

My example is I have a session storing the logged in user. This is checked for user access to each page.

If the user goes to another site (e.g. google) I want them to relog into the site.

This is to prevent others getting access to a users account if they use the same pc minutes.

I do have a logout that performs this and I know that it is impossible to make users use it! :)

View 2 Replies

Remove All Sessions Once The User Leaves The Application/site Or Closes The Browser?

Apr 9, 2010

Is there anyway to actually remove all the sessions once the user leaves the site/application or when he/she closes the browser?

View 11 Replies

C# - How To Use Microsoft.Web.Administration.dll To Get The Site Information

Jun 11, 2010

I have a half dozen sites on my server and I would like to get some info from IIS7 to display in the footer of each page (as long as you are an admin of course). I am going through the ServerObject and found Sites but am not finding anything obvious for "this site". What should I do to get at the information for the exact site in IIS7 that the page is running on?

For a quick 'hack' style approach I wrote this on my default.aspx page code behind:

[code]....

View 1 Replies

Take Information From One Site (html) Displaying On Another

Mar 9, 2010

I've been asked to create a page which will provide identical information from another page. The key thing is, from my understanding, that it is not data driven it's from a txt file wich is updated. This info will need to be reflected on the page I'm going to create. how to "pull" or get the information w/o the help of database?

View 13 Replies

Creating Slide Show - How To Start Or Where To Find Information

Oct 20, 2010

I want to create a small application using ASP.NET. The application will let the user select a few images/pictures from a folder. After selecting the images/pictures, the user will then click on a Button to create slide show using those images/pictures. Anyone has any idea, how to start or where to find information regarding this.

View 1 Replies

Web Forms :: How To Add Search For Available Domain Name And Find Information About Specific One

Oct 10, 2010

i have a task to add search for available domains and also to find some information about specific one

anyone has any background about how to do that or there is any web services that provide this functionality

View 1 Replies

Site Or Forum That Is Good Source Of Information On How To Use Different Aspects Of Their API

Sep 2, 2010

I'm attempting to use the DotNetCart ecommerce module in a solution we are building. The problem i'm having is that i'm finding that the included .chm documentation is quite lacking. I've brought this up with their support dept and received no help there. My question is, is there a site or forum that is a good source of information on how to use different aspects of their API?

View 2 Replies

Saving Information For The Duration The User Has A Site Open?

Mar 27, 2011

How woulld I set this up:

I wanna save what links a user clicks on in a website. I thought of creating a jquery function that would save the link name everytime a link is clicked , then ajax the info to the db after the user closes the site.

Does that sound like a proper way. Anyone have samples of that?

Since there are multiple pages with multpile links, I wanna create something equivalient to a Session variable in javascript so I can append info to it everytime a user clicks a link and send the info only once to the db, instead of everytime a user clicks a link open a db connection and send the info.

The links are products so I wanna save related products, so I wanna save related product infomation. Maybe I need a cookie instead?

View 3 Replies

Web.config Error: Could Not Find Schema Information For The Element 'case'

Nov 7, 2010

I've added the section below trying to have my menu displayed correctly in the Chrome browser.

However, VS2008 complains:

Message 1 Could not find schema information for the element 'case'.

Message 2 Could not find schema information for the attribute 'match'.

From web.config:

<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

[code]...

View 2 Replies

Security :: Try To Load The Site From Internal Network, The Information Is Blank?

Jan 14, 2010

[Code]....

I have the above statement in the Page_Load sub on the masterpage. When I run "Start Debugging" from VS 2008 it works fine. However, when I publish the Web Site (on the same machine) and try to load the site from our internal network, the information is blank.

View 2 Replies

How To Find 404 Errors That Are Generating On Site

Jan 14, 2011

My site is running through Windows Server Standard, from where i can found 404 errors that are generating on site. I already checked Windows Logs --> Application but could not find them.

View 2 Replies

How To Find If Users Are Visting My Site Using IIS

Aug 31, 2010

I want to find out if users have visited my site in the last couple of days. i did not put Google analytics so I was wondering if there are any logs of IIS which log if a user has visited or not?

View 1 Replies

How To Find Or Read Sending Server Site On A Link

Feb 18, 2010

Say on website1 there is a link to website2(asp.net)ites are unlrelated to each other, different servers and different domains.Website1 may even be php.The link on website1 is <a href='http://www.website2.com/default.aspx' >LINK to website2</a>Question: Can I in codebehind in website2/default.aspx read were the link came from, thats is determine it came from www.website1.com, when default.aspx was selected into browser?

View 2 Replies

WebMatrix :: Create Wordpress Site - Getting Error - Can't Find Database

Dec 26, 2010

I try to create a wordpress site from the gallery and I get an error that says that it cannot find database. I dont have mySQL installed. I thought that WebMatrix would download and install it. Does WebMatrix Beta 3 expect MySQL to be installed? And if so, which version?

View 1 Replies

How To Find Number Of Visitors/users At Site (IIS7/asp.net) At Any Given Moment

Apr 27, 2010

I need to display how many users are browsing my site. The site is running on iis7, and we are using asp.net 3.5.Is the number of active sessions a good way to go?The number does not need to be very accurate.No history is needed, I just want to know how many users are "online" right now, and display that on the page itself.

View 3 Replies

Configuration :: How To Find Web Site Administration Tool (WSAT) In Web Application And Not On Website

Feb 8, 2011

Is anyone able to see Web Site --> ASP.NET Configuration if you are creating a web application using File --> New Project --> Visual C# --> Web. If so, how and where?

Base on what I've tried, the menu Web Site --> ASP.Net Configuration appears only if you create a website by File --> New Website.

What I am actually trying to find is the Web Site Administration Tool (WSAT).

View 5 Replies

MVC - Find Controllers With (Authorize) Attributes Using Reflection In C# Or Build Dynamic Site.Master Menus?

Jun 8, 2010

I'm currently writing a web app in ASP.NET MVC 1.0 (although I do have MVC 2.0 installed on my PC, so I'm not exactly restricted to 1.0) -- I've started with the standard MVC project which has your basic "Welcome to ASP.NET MVC" and shows both the [Home] tab and [About] tab in the upper-right corner. Pretty standard, right? I've added 4 new Controller classes, let's call them "Astronomer", "Biologist", "Chemist", and "Physicist". Attached to each new controller class is the [Authorize] attribute. For example, for the BiologistController.cs

[Authorize(Roles = "Biologist,Admin")]
public class BiologistController : Controller
{
public ActionResult Index() { return View(); }
}

These [Authorize] tags naturally limit which user can access different controllers depending on Roles, but I want to dynamically build a Menu at the top of my website in the Site.Master Page based on the Roles the user is a part of. So for example, if "JoeUser" was a member of Roles "Astronomer" and "Physicist", the navigation menu would say:

[Home] [Astronomer] [Physicist]
[About]

And naturally, it would not list links to "Biologist" or "Chemist" controller Index page. Or if "JohnAdmin" was a member of Role "Admin", links to all 4 controllers would show up in the navigation bar. Ok, you prolly get the idea... Now for the real question... Starting with the answer from this StackOverflow topic about Dynamic Menu building in ASP.NET, I'm trying to understand how I would fully implement this. (I'm a newbie and need a little more guidance, so please bare with me.) The answer proposes Extending the Controller class (call it "ExtController") and then have each new WhateverController inherit from ExtController.

My conclusion is that I would need to use Reflection in this ExtController Constructor to determine which Classes and Methods have [Authorize] attributes attached to them to determine the Roles. Then using a Static Dictionary, store the Roles and Controllers/Methods in key-value pairs. I imagine it something like this:

public class ExtController : Controller
{
protected static Dictionary<Type,List<string>> ControllerRolesDictionary;
protected override void OnActionExecuted(ActionExecutedContext filterContext)
{
// build list of menu items based on user's permissions, and add it to ViewData
IEnumerable<MenuItem> menu = BuildMenu();
ViewData["Menu"] = menu;
}
private IEnumerable<MenuItem> BuildMenu()
{
// Code to build a menu
SomeRoleProvider rp = new SomeRoleProvider();
foreach (var role in rp.GetRolesForUser(HttpContext.User.Identity.Name))
{
}
}
public ExtController()
{
// Use this.GetType() to determine if this Controller is already in the Dictionary
if (!ControllerRolesDictionary.ContainsKey(this.GetType()))
{
// If not, use Reflection to add List of Roles to Dictionary
// associating with Controller
}
}
}

Is this doable? If so, how do I perform Reflection in the ExtController constructor to discover the [Authorize] attribute and related Roles (if any) ALSO! Feel free to go out-of-scope on this question and suggest an alternate way of solving this "Dynamic Site.Master Menu based on Roles" problem. I'm the first to admit that this may not be the best approach.

View 2 Replies

Increase The Execution Timeout And File Upload Limit - Error "Couldn't Find Schema Information For The Element Httpruntime"

May 17, 2010

I'm trying to increase the execution timeout and file upload limit on my asp.net website but when i try to add

<httpRuntime
executionTimeout="110"
maxRequestLength="4096">
</httpRuntime>

i get the following errors:

Could not find schema information for the element 'httpruntime'.
Could not find schema information for the element 'executionTimeout'.
Could not find schema information for the element 'maxRequestLength'.

According to this msdn library link this is how I'm supposed to do it,so what am I missing here?

View 1 Replies

JQuery :: $("#id", Context) Does Not Find Element In The Site?

Nov 18, 2010

I have a form element which submits some data to a server. The server responds with a new version of a page.I added jquery code to hijack the form: validate it (using jquery validate) and if correct send post request. The success function then should find one div and one span elements (they have id's set ("board" and "calcSpan")) in the returned html-page and replace the old one's with the received elements.

For some reason it finds only the second div, the result of the search for the first div is jquery-object containing no html.Here is the javascript-code:

[Code]....

Some parts of the aspx web-page:

[Code]....

View 4 Replies

ADO.NET :: Automatically Loading Information From A MS SQL DB When Information Is Entered

Jan 19, 2011

I am making an online form (literal form) that needs to have a certain function: when the user enters a 5-digit number, the form should automatically query the MS SQL DB and retrieve information associated to that number and populate other form elements (text boxes, etc.) accordingly.

So say the # was 12345 and in the DB, the record matching 12345 has name=Fred. So, when I enter 12345 into the form textbox, the name text box should be automatically populated with Fred in it.

If this is not easily achievable, I guess a submit button beside the 5-digit number text box can do.

I am still learning my way around ASP.NET and Visual Studio 2005, however I have ample experience with HTML, CSS, JavaScript, C/C++. The ASP.NET app is to be written in C#.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved