Using A Cookie / Session Instantiated By Another Application?

Mar 13, 2012

I have a customer intranet (ASP.NET / VB) thats instantiating an asp.net session checking various things in the dblogin process. The Intranet has various sub-systems.The marketing sub-system requires an app_role to be assigned to the Intranet user for them to view the section.I need to create a new booking form for this section but the code appears to use a generic form which is use throughout the site in various other sections. So its not a good idea to ammend what is currently there.Create a new application in C# / ASP.NET and also in IIS. (rather than a new site, create an app within the Intranet site in IIS)Will I be able to check for the session thats currenting set in the cookie?If the session is open then the user is able to see the Intranet and I assume I will need to do some checks for the app_role too.I am simply going to put the URL for the app in the menu for marketing and then do another check just incase someone gives the URL to someone who doesnt have access to the menu.Will i be able to check and use the cookie thats been instantiated by another application?

View 1 Replies


ADVERTISEMENT

.net - Get Web Session From Cookie?

Nov 17, 2011

I'm trying to do an scrape a web page but in order to Post the data I need a web session ID like

web_session=HQJ3G1GPAAHRZGFR

How can I get that ID?

My code so far is:

[Code]....

View 1 Replies

VS 2008 Retrive Http Header - Cookie / Session

May 5, 2010

I am looking for a tutorial how retrive headers(cookies/sessions) from a webpage. google only directs me to webbased cookies/header/sessions etc.

View 2 Replies

Cookie Being Deleted Unexpectedly By Application

Jan 26, 2010

I am having an issue with a cookie that keeps getting deleted by the application. When you go into the application, if the cookie does not exist, it gets created. This works fine and everything in the cookie is stored correctly. When I click on a link to go to another page, once everything loads completely, the cookie gets deleted from the file system. Even stranger than that, the values from the cookie remain until the browser is closed. That is the application appears to be retaining the values even though the cookie does not exist on the local file system. The next time you enter the application, the cookie is recreated so any values stored are lost.Now, I have done some tweaking on the code to see what could be causing it. I found that I am adding the cookie to the Response object any time I make a change to the cookie. The cookie is also being added to the Response object when the page load is completed. My initial thought was that adding the cookie multiple times to the Response object could be causing the issue. I commented out the code in the page load complete event and the cookie hung around until the next postback. Then I put in some logic to keep the application from putting the cookie into the Response object more than once, and then I lost the cookie again at the same point as before.All of the code for handling cookies is in my "base page" that all pages inherit from. The page that seems to be loosing the cookie is my search page. I am including the code from both of those pages.[code]

View 1 Replies

Using Stored Chrome Instead Of IE Cookie In Application?

Nov 2, 2011

is it possible to use stored Chrome cookies in VB.NET?

I need to periodically check certain data on a webpage that requires login. I know I can login with Internet Explorer first and then later use the stored Internet Explorer cookie in my application to visit that webpage.

The problem is that I use Chrome to browse that website. When I first login with IE in order to check the data with my application and then browse the website manually with Chrome, the Chrome cookie is suddenly invalid. Then I need to login with Chrome, but then the IE cookie is suddenly invalid again and my application can't check the data anymore.

So, it's not possible to browse the website (logged in with Chrome) and periodically check the data in the background (logged in with IE) at the same time.

I really do not want to use IE to browse that website. The only way to make this work properly, is if I could use the stored Chrome cookie in my application, instead of the IE cookie.

View 3 Replies

Cookie Info - Get Info From Stored Cookie On The Local Machine?

Sep 17, 2011

Can I get info from stored cookie on the local machine. I have a Webbrowser control in a winform, and I would like to output data from a cookie to a label or so.

View 4 Replies

Asp.net - Adding A Session ID To A Link For Automatic Session Start?

Dec 8, 2011

I am storing a session variable that a user types into a textbox. With their valid input, their session gets created and they get a little more functionality than the regular end users of the site.I was wondering if it is possible to find a way to add someone's session variable to the end of a URL. This way we can email a link to one of our clients, they click it, and their session has automatically begun. They already have the textbox to enter their code into, but I was told that it would be much easier for the users to just click a link that will start their session.

View 1 Replies

Application Locks Up When Running In Terminal Server Session?

Sep 23, 2010

I have a Windows Forms application created in VS2005 which runs fine on the user desktop but when running in Terminal Server session it frequently locks up when the remote desktop window is minimised and the user is working locally.There is plenty of RAM on the server so this is not an issue, the only solution so far has been to force the user session to log off on the Terminal Server and then reconnect.

View 14 Replies

Cache User Session In A Windows Forms Application

Nov 2, 2008

How do you cache user session in a windows forms application? So that the user session expires when inactive for a certain period of time. I wish to include that functionality using an integrated security and caching application block from microsoft's patterns and practices.

View 2 Replies

Determine When Application Is Running From Remote Desktop Session?

Oct 27, 2009

Is there a way to determine if the application is running from an RDP session or not? Our staff has VPN access and use Microsoft's RDP Client to connect to their computers at the office. They mostly interract with software we've written. I'd like to identify those people that use our applications via RDP as opposed to being physically at their computer.

View 1 Replies

How To Granted Session Id Is Absolutely Unique In A Highly Secured Application

May 12, 2010

we do have incidents that two different users signing on the same website and seeing other's account, one possible reason is the session id assigned to each sign on user got a collision - although the possibility could be extremely low, but in our case it is not acceptable as long as it is possible. So I am looking for a 100% absolutely secured session id?

View 4 Replies

Session Id Or Session Number Of The Connection With Mssql?

May 28, 2009

On startup of my software which i developed in vb.net, it connects to mssql server. I want to have session id or session number of the connection with mssql. I'm sure it is unique number and i want to use this session in my software for different purposes. My question is

1. is there anything like session id or session unique number when you connection mssql server

2. if yes to 1 then how i can get it in vb

View 1 Replies

Application That Opens A Session To A Specific IP Port / Writes To A Test File Everything It Receives

Feb 20, 2009

I've had a search through a number of extremely useful articles on the forums, however rather than reinvent the wheel I thought I would ask if anyone already had what I am looking for..A simply little VB app that opens a session to a specific IP port and then writes to a test file everything it receives. If the connection drops, simply re-stablish it and keep listening for text to write to the file.

View 1 Replies

Access Instance Already Instantiated?

Mar 31, 2010

I create an Instance of Access to view a report through my app.I would like to check if an Instance of Access has either already been opened by the user, or by the app. If so, use that instance.

Dim oAccess As Access.Application
Public Sub CreateAccessInstance()
Try[code]...

As it stands now, It creates multple MSACCESS.EXE processes which are running until I exit the app.

View 9 Replies

Cannot Seem To Get Sub From An Instance Of Class Once Instantiated?

Sep 11, 2009

I think I just need a push in the right direction. I cannot seem to get my sub from an instance of my class, once instantiated, to run when I click on the button. My Code in the class is

When I click this:Private Sub btnBark_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBark.Click
mydawg.bark()
End Sub

[Code]...

View 2 Replies

Where Does A Startup Form Get Instantiated

Sep 10, 2009

When developing a Windows Forms Application, I can see in the Application.Designer.vb file where Me.MainForm = Form1, but I can't find where/how Form1 actually gets newed-up.

View 3 Replies

Wpf - Custom Control Can Only Be Instantiated Once?

Mar 8, 2012

I am new to WPF and custom controls.I have implemented a custom control in VB with WPF and MVVM based on Davids example: [URL]..I have a custom control libary and a reference to my project to implement my control.I implement my contol in the View via XAML:

[Code]...

View 2 Replies

Change The Upperbound Of An Array Once It Has Been Instantiated?

Jun 15, 2009

Is it possible to change the upperbound of an array once it has been instantiated? I want to change the upperbound in an array so it matches the number of items that hold a value.

View 11 Replies

Instantiated OCX Object Has No Event Fired?

Jan 6, 2011

problem with no event fired after the wrapped ocx object with aximp sent out the message in a console application testing.

View 3 Replies

Oop - Particular Object May Be Instantiated Only Once During Program Execution?

Dec 27, 2009

VB.NET: What is the best way to ensure that a particular object may be instantiated only once during program execution?

View 3 Replies

VS 2005 Using WithEvents With A Non-instantiated Class?

May 13, 2011

Can you raise events from a class that has only shared members and doesn't get instantiated? I originally had the class members non-shared and created instances of the class where I need them. I had the events being raised and everything worked as expected. But as the class members are actually application level and do not need instancing, I converted all members in the class to shared so they could be accessed from anywhere in the program without creating an instance of the class. But WithEvents requires the creation of a class instance. I've done that and it seems to work fine when using an instance. And since I need the events handled in only one class, I can create the instance in that class and let all other areas access the class directly, without creating an instance.

View 10 Replies

.net - Release A File Lock On A COM DLL That Has Been Instantiated Via `CreateObject`?

Dec 21, 2011

I have a .Net 4 WinForms app that generates a DLL, calls CreateObject on the generated DLL then calls one of several methods that the DLL contains. The DLL is eventually used by a separate app. This WinForms app is just to generate and test the DLL hence why it can generate the DLL multiple times.The problem lies in the fact that calling CreateObject on the DLL locks the file to the process. The next time the DLL is generated it can't overwrite the previous DLL file on disk without closing the app completely and starting it again.

I've tried Marshal.ReleaseComObject, executing the CreateObject in a separate AppDomain, even setting the variable holding the COM object to a different COM object via CreateObject, manually calling GC.Collect() and a whole host of other things but none result in unlocking the file.The code flow is basically (simplified and generic names, etc.):

...
' Compile and generate DLL that is COM enabled and works fine
...
Dim foo As Object = CreateObject("Bar.Foo")

[code]....

is there a way to release a file lock on a COM DLL that has been instantiated via CreateObject without killing the process?

Note: this is a continuation of this original issue. I now have the DLL registering without locking the file but now the issue is with the CreateObject call not the DLL registration.

View 1 Replies

C# - All Disposable Objects Instantiated Within A Using Block Disposed?

Feb 17, 2010

This is a question I have asked myself many times in the past as I nested using statements 5 deep. Reading the docs and finding no mention either way regarding other disposables instantiated within the block I decided it was a good Q for SO archives.

[Code]...

View 6 Replies

Classic Program Instantiated Excel Won't Close On Quit

Jul 31, 2009

This runs correctly, but Excel remains active after close.

If I don't create the range objects below, everything seems to work (with no output of course). Does anyone have any idea on how to keep Excel from staying in memory. Also... in the tests I'm running, I do not make the application visible.[code]...

View 3 Replies

Getting Button Events From Multiple Manually Instantiated Controls

Aug 30, 2011

I have created a simple custom control - we will call it a "panel with buttons". Here is how I instantiate it:

[Code]....

So what I wind up with are multiple instances of my panel. Each of these panels has a button on it called Button1.
My question is - how do I capture this button event in a way that I will know which panel index it came from?

In the custom control there is only the Button1_click event - and when I click on it in any of the multiple panels I manually instantiated the event does occur, but how I can tell which one of my instantiated buttons were clicked...

View 1 Replies

IDE :: Format Order Of Controls Instantiated By Code During Run Time

Feb 3, 2009

I am working on an application that requires buttons and links to be added during run time, it's a bit like a flow chart. The buttons are used to display information similar to a multi line text box, but I also use the click, double click and mouse events for these buttons. The links are drawn as label controls. My problem is that I want to control the format order of these controls with the buttons always being on the top layer and the labels one layer back so that when labels are added they aways pass behind the buttons. If this was done at design time it is very easy to use the menu Format > Order to get overlapping controls displayed the way I want. But, the controls placed on the form at run time do not have a Format or Order property.

View 1 Replies

.net - Can The Select Extension Method Project To A List Of Instantiated Objects

Mar 24, 2011

I have two lists declared as follows:

Dim lstDBItems As New List(Of DBItem)
Dim lstAppItems As New List(Of AppItem)

I am trying to do something like this:

I've a function which returns List(Of AppItem):

Function GetAppItems() As List(Of AppItem)
'...
End Function

In the above function I populate lstDBItems and then write the return statement like follows:

Return lstDBItems.Select(Function(x)
dim oItem As New AppItem()
oItem.Property1 = x.DbProperty1

[Code]....

The weird thing is the code compiles, but on rumtime I get a type case error.

View 3 Replies

.net - Asp.net With Null Cookie?

Nov 25, 2010

I'm having problems writing an If statement because it's asking for the value of a cookie, but it's possible that the cookie could be null which breaks the page.

Here's the code:If Request.Cookies("myCookie").Value = "1234" then'do stuff End If

I think i need an elegant way of say "If myCookie is not null and has a value of..."

[Code]...

Basically the cases are always going to be the same but it will select the case from one of 2 places depending on whether myCookie has a value. Since there may be quite a few cases is there anyway I can get away with only listing them once.?

View 5 Replies

Asp.net - JavaScript Can't Get/set Cookie In Ie7

Sep 14, 2011

I have to store, in 2 cookie dictionary/keyed cookie, a user's preference for hiding certain sections of each form on the app. It would appear that IE7 has reached some limit for the number or size of the cookie in javascript. I mean that the cookies are only inaccessible on the client-side js, but can be read just fine in our asp.net/vb code-behind.

The functions that need to read the value of these cookies must be on client side because I can't run a postback everytime the function needs to update the cookie. How should I go about getting and setting the cookie without triggering postback? I thought about storing the value of the cookie onload in a textbox, but I don't know when I would read it back and update the cookie.

View 2 Replies

Creating A Cookie

Jul 29, 2009

is there any way to create a cookie using vb.net?

View 4 Replies







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