I need to be able to delete a user's session (force him to login again). E.g. I want to delete and ban the user from my site, but even if I delete his data from the DB his session will be still active and thus he can continue to be active on the site until he logs out and tries to log in again.
How should I find and delete the session o...
Hi.
I need to know how to go about implementing general security for a C# application. What options do I have in this regard? I would prefer to use an existing framework if it meets my needs - I don't want to re-invent the wheel.
My requirements are as follows:
the usual username/password authentication
manageing of users - assign pe...
I have an update panel that contains a repeater that calls a user control into each row. When I click a button inside the user control, the page does not refresh at all, only when I reload it completely. How can I make the update panel refresh from user control's button click?
...
I have a Java web application running on JBoss using JAAS for authentication. I would like to dynamically select the page a user logging in is shown based upon their roles as I have disjoint sets of users that shouldn't have access to the same pages.
I've tried using a Filter, but Tomcat denies access (correctly) to the requested URL be...
Hello,
lets say I got multiple users. They all have items linked to their account. They can CRUD those items.
So now my question is: what's the best way to prevent users from manipulating items from eachother.
At first I thought the antiforgerytoken would help. But it doesn't because when the users look at their control panel they got...
I would like to know how to retrieve the list of users that are logged onto a Remote machine. I can do it with qwinsta /server:xxxx, but would like to do it in C#.
...
How to experiment and observe these limitations in user mode in Keil IDE?
What if the user wants to enable an interrupt?
...
I have a problem in my asp.net application. The users can access a document, but only one user can access one document at the same time. When a user gets a document, a flag in the db is updated for the document, indicating that the document is in use. When the user finnishes working with the document, this flag is updated again to indica...
"User A" is logged on
My application recognizes Environment.Username as "User A"
Now in Windows, I click on Switch user ...
"User B" logs on
"User A's" processes are still running
Application run by "User A" still says Environment.Username is "User A"
I want the application to recognize that the currently logged on user (currently acti...
I am developing an asp.net application in 3.5 where authentication is done using cookies. On the default page I am authenticating the user and setting some value in cookie.
Whenever I need to authenticate the user I just verify it from the cookie. If the user is not authorized then I redirect him to the default page for authentication.
I...
I want to store a user's current location on an ASP.NET MVC website for the duration of a session. Because I want to use the location server-side, the way I think this should work (maybe other suggestions?) is that when a user first hits the website, I get the location and store it in the session, so on later requests it does not have to...
I created a WCF web service to return user and group information from Active Directory. It works fine for most groups and users, but not all.
I use directoryEntry.Invoke("groups",null) to return the groups a specified user is member of. This returns MOST groups. The odd thing is that I can find any group and enumerate its members, ev...
My User Control has the following properties:
private String _requestIP;
public String RequestIP
{
get { return _requestIP; }
set { _requestIP = value; }
}
When adding a instance of the Control to an aspx page at design time it's easy to assign the attributes which can be utilized in the codebehind file...
<uc:Item ID="Test...
Are thee any tools out there that can tell you what your LDAP connection string is?
...
Hi,
I'm wondering if Drupal is the right choice for me. I need to create a solution where my "primary"-users should have the capability to create their "secondary"-users and provide access to certain paid subscriptions. Is that easily doable in Drupal, or am I better off not using that and looking elsewhere? (Alternative was to integrat...
Hey,
I have a model Book which can be added to user's Favorites. So I defined 2 classes:
class Book(models.Model):
name = models.CharField(max_length = 40)
class UserFavorite(models.Model):
book = models.ForeignKey(Book)
user = models.ForeignKey(User)
Now I'd like to show on the main page popular books with an icon eith...
Hi,
I am trying to dynamically load a user control in an asp.web site. However due to how asp.net websites projects are setup (I think), I am not able to access reach the type definition of the user control.
I get a message saying that my class HE_ContentTop_WebControl1 is: he type or namespace name 'HE_ContentTop_WebControl1' could no...
I've been trying to figure this out for quite some time without success.
foreach ($users as $user) { //list of users to act on
$by_user = views_get_view_result('attendance', 'page_3', array($user->uid)); //view containing info about this user
$edit = array('profile_attendance_short_term' => substr(count($by_user) / count($general), 0,...
I need to create a new user in Active Directory. I have found several examples like the following:
using System;
using System.DirectoryServices;
namespace test {
class Program {
static void Main(string[] args) {
try {
string path = "LDAP://OU=x,DC=y,DC=com";
string username = "johndoe";
...
I need to have the ability to have a Global variable/class that stores some basic information about the currently logged in user including that user's preferences, security rights, UserID, etc. This information will be needed by any/every part of my application.
In the past I have either used a Public variable/class in a vb.net module ...