Access Users Cookies In VB?
Dec 11, 2009I am trying to write VB Code that would allow me to access a users cookies from their PC. Is their any code snippits that any of
View 2 RepliesI am trying to write VB Code that would allow me to access a users cookies from their PC. Is their any code snippits that any of
View 2 Repliesits possible to set the webbrowser cookies as same than httprequest cookies.
Private Sub lol()
Dim request As HttpWebRequest = DirectCast(WebRequest.Create("http://login.ijji.com/postLogin.nhn"), HttpWebRequest)
request.CookieContainer = cokie
[code]...
Is it feasible to deploy a VB.NET windows forms application with a SQL Server back end where no users have direct access to SQL Server? The idea is that there is no way someone at the client site with admin capabilities could mess up the data definition, or directly alter data. I always assumed that somebody with the client should get admin capabilities, but perhaps not.
The application will have to have the capability of creating logins, doing backups, perhaps running scripts (encrypted?) For upgrades, and whatever else a user with elevated privileges would do. I guess the application would have a hard-coded account with admin privileges for this purpose. Is this a common way to deploy an application? The application uses SQL Server Express, which is installed with the application. The database will be installed with the application.
Looking for some .net snippet on accessing what users are logged into a domain. I have looked through all the AD namespace and okay with that in getting static items. Specifically, NOT looking for current logged in user for a given machine(have that as well). Looking for a list of users that are currently signed into a Domain.Essentially, I want to pass a user (or list of users) to a method that will check to see if the user passed in, is currently logged into the network (AD).
View 6 RepliesI know my Question was asked maybe 10000 times before, but i really did not take the chance to search the forum coz i really short of time.
I have *.mdb DataBase with 20 tables each table have more than 10 fields, i'm trying to automate the MDB file from a network like that 5 PCS + One vb.net exe program (5 users) working on the same time on the exe that is connected to the database , my questions are :
1) How much risk is it to put the database into one (shared) folder and connect it to the program ?
2) What is the best way to establish this method ?
3) Is there any alternatives ?
I'm trying to collect directories and add to TreeView. In Windows 7, there is a "Documents" folder under Libraries which is basically linked to "My Documents" under "Users". When I click "Documents" in the TreeView, I can get a list of all subdirectories by using
Dim dirs As String() = Directory.GetDirectories(strDir)
i'm developing an application with vb.net and mysql. I want to add additional users to the application but with different access levels. this is my original code [code]If i add a third parameter named level to the sql statement, how do i determine which form shows???
View 3 RepliesI'm trying to return from a webpage, the remote HKCUVolatileCLIENTNAMEHere's what I'm doing so far:
Get the Machine Name via DNS - this bit works great:
Public Shared FunctionGetMachineName(ByVal String
[code].....
This program is going to submit GET data to our webpage. However, we don't want users accessing the webpage any other way than the program. We can prevent users from sharing the program using HWID authentication, but nothing prevents them from using a packet scanner to get the URL of the webpage. We thought about user-agent authentication, which we will implement, but user-agents can easily be spoofed.
how can we prevent users from accessing the webpage directly, instead of through the program?
Currently we will be implementing:
HWID Authentication to use the program User-Agent Authentication to access the web page Instant IP Blacklisting to anyone accessing the webpage without the proper User-Agent
In my application, I create data and log folders that must be shared by all users using this computer. I did a lot of research, and I found a function that is supposed to grant full access to every users of a folder and its children. However if right-click properties on my folder, the access is unchanged. ow should I grant full access to all users of a folder and its children (I don't care who created it, all users should be able to read and write to that folder)?
Public Sub GrantAllAccess(ByVal Folder As String)
Try
Dim DomainUser As String = Environment.UserDomainName & "" & Environment.UserName
[code].....
I am developing an access database that will be shared with multiple users.I don't want the users to access the database directly so I will have them enter new data on a data access page. The data access page is stored on a Microsoft Share Point web page, and the database is stored on a network drive.Here is my problem: When new data is entered on the web page I need it to trigger a WillChangeRecordset event; however, I have not been successful because the web page does not declare a new instance of a recordset object.At a minimum I need the new data to be processed before the web page appends the new data to the table.
View 3 RepliesI am developing a Visual Basic .NET application to be used by the staff of a small training centre nearby. The front-end (UI, menus, etc.) will all be in VB .NET, and there will be a back-end database for storing all of the required data, such as student records and meeting information. What I would like to know is if it's possible to use a Microsoft Access database for this purpose, and have it accessible by all the staff in the centre (on the same network) at the same time. For example, would I be able to put the database in a shared network folder, and have a copy of the VB application on each PC that would all be able to read/edit/add to the database?
View 2 RepliesI have a site where users must only be able to access the Login.aspx page via SSL/HTTPS.Currently I run something like the following in my Page_Load():
If Not (IsSSL) Then
Response.Redirect("https://" + thisDomainName + "/Login.aspx")
End If
Is there a better way of doing this?
I would like to give permission to use this project to say, 10 users. The following code is fine for a single user. How can I write conditional code to provide the access to other nine users?
Submit button
If txtUsername.Text <> "Mahajan" Or txtPassword.Text <> "mh745" Then
MsgBox "Access Denied! Either Username or Password is incorrect!", vbOKOnly + vbCritical, "Security Login"
txtUsername.Text = ""
txtPassword.Text = ""
[code]....
I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.Here is the membership provider definition from web.config:
<membership defaultProvider="MyProvider">
<providers>
<add name="MyProvider"
[code].....
I've got a code using SQLClient that loops though all users in a Users table inside each loop i want to preform another search in the UserOrders table, thus doing a count of all orders.
I get this error
HTML
There is already an open DataReader associated with this Command which must be closed first.
Here is my code
vb.net UserLists.Items.Clear()
Dim connection As New SqlClient.SqlConnection(My.Settings.ConnectString)
Dim command As New SqlClient.SqlCommand("SELECT * FROM Users ORDER BY PersonName",
[CODE]...
1.I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back.
2.Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only.
1. I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back. 2. Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only. Any alternative way to achive the target is just fine.
View 1 RepliesI cannot figure out how to get this call to work.I have searched EVERYWHERE.MSDN is no help at all and the only thing I can find is this vb6 code that doesn't work in .net.I tried to convert it over but I've had no luck.Specifically I'm trying to get the path of the "All Users" Desktop and the "All Users" Start Menu.It would rock if anyone could help me out with this one.
View 5 RepliesOn the login page I made, this is part of the code behind for the submit button.
Dim aCookie As New HttpCookie("userInfo")
aCookie.Values("user") = Me.usr.Text
aCookie.Values("last") = Now.ToString()
[Code]....
For some reason, when it gets to the last line, it throws an error:
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
I'm attempting to delete all cookies under a certain URL. How exactly would I go about completing that? For example, I want to delete all the cookies under [URL]. How would I do that?
View 4 RepliesI am using Visual Basic/Visual Studio 2011 Beta I have a series of web sites I program webbrowser1 to navigate to. It is a simple program. The problem I am having is that the websites remember me from the last visit from my cookies(?). Even if I have webbrowser1 click on the logout link, the next time I visit that site I am still logged in! I want the webbrowser to arrive at the website each time as if for the first time ever there, with no record of anything on that site that was done before.
[Code]...
I would like the VB.net WebClient to remember cookies.
I have searched and tried numerous overloads classes.
I want to login to a website via POST, then POST to another page and get its contents whilst still retaining my session.
Is this possible with VB.net without using WebBrowser control ?
I tried Chilkat.HTTP and it works, but I want to use .Net libraries.
how to create cookies in vb windows application project. Please give me some hints or reference for to refer ....
View 4 Replies[code]...
and When i check thorugh fiddler i got this error
"Your cookies seem to be disabled. Setting preferences will not work until you enable cookies in your browser."
I know HOW to use cookies, but how to do so in a Windows Forms Application? What reference would I need to add in order to add cookies to the user's machine?
View 1 RepliesI am using ASP.NET and C#. I must read a cookie called "TheCookie".TheCookie have about 3 values in them. Cookie1, Cookie2 and Cookie3.How would i get the value in code to read Cookie2's value inside "TheCookie"?
This is how i would read when a cookie only have 1 value, but i dont know what to do when there are multiple vales in the cookie Code for VB.NET
Dim userCookie As HttpCookie userCookie = Request.Cookies("UserEmail")
Can we create cookies using windows Application in the local machine using VB.Net?
View 2 RepliesHow I can check If a page have cookies or not? (I made a code to show they in a ListBox, but If the page don't have cookies, a runtime error appears (the second runtime error I ever had))
View 3 RepliesI use a webbrowser control in my VB.Net Program, and I want to delete all the cookies from the computer. How can I do that?And also how is it possible that I enter some site through my Internet Explorer, and it sets a cookie on my computer, and then I try to enter the same site through the webbrowser control in my program and it doesn't recognize that cookie? It uses the same browser, isn't it?
View 6 Replies