473,883 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create and use a cookie for a website in PHP?

Hi.

I use VB.NET to create a soft which POST data in a website writed
in PHP. First, I must to login in this website with a username and
a password.
After, I must use this cookie to post, to naviguate in this site.

Can I write a cookie in LOCAL (with cookie's value : username,
password, path , time expire...) and use this cookie in order to
POST in this website ? The website can accept my cookie ?
Can I have a code exemple please ?

Thank you.

----------------------------------------------
Posted with NewsLeecher v2.0 Final
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------
Nov 21 '05 #1
1 1080
You could use Indy.Sockets for this. Indy.Sockets implements a much more
advanced Http client, but Indy isn't limited to Http. It implements over 100
protocols.

Greets,

Matthijs ter Woord
Team Indy


"doihe" <tr****@ru.co m> wrote in message
news:d%******** **********@fe63 .usenetserver.c om...
Hi.

I use VB.NET to create a soft which POST data in a website writed
in PHP. First, I must to login in this website with a username and
a password.
After, I must use this cookie to post, to naviguate in this site.

Can I write a cookie in LOCAL (with cookie's value : username,
password, path , time expire...) and use this cookie in order to
POST in this website ? The website can accept my cookie ?
Can I have a code exemple please ?

Thank you.

----------------------------------------------
Posted with NewsLeecher v2.0 Final
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1718
by: Navin | last post by:
hi, guys my website is on server say servera. i have a website on serverb now servera and serverb are on different domians... if serverb website creates a cookie on client pc with domain say ..xyz.com now if try to read the cookie on client pc when servera website is run
1
793
by: Rahul Chatterjee | last post by:
Hello All I have an asp page problem (the nature is slightly complex so please bear with the long winded explanation). We have a sandbox front end domain and a sandbox backend domain. The front end communicates with the back end using XML data interchange and URL variables. THe website has frames - the left frame consisting of the navigation and the right frame consisting of the displays of information. We have implemented a search...
1
1743
by: HorseGeek | last post by:
I have three servers: Server1, Server2, and Server3. There is a login cookie does not expire for SOME users on Server2. Ironically, the login cookie expires correctly for ALL users on the Server1 and Server3 websites. This seems to imply a problem with the user's browser settings ... except the users that have consistent problems with the Server2 are able to read the logon cookie and other cookies which control navigation to the...
3
1240
by: Aah | last post by:
here is my code which is use to create a cookie for some reason when I use the domain property I am not able to see the cookie in my cookies folder. But when I comment out my domain property, I can see my cookie in my cookies folder. How can I use the domain property to create a cookie???? Dim MyCookie As New HttpCookie("firstcookie") Dim now As DateTime = DateTime.Now
4
5651
by: 23s | last post by:
I had this problem in the past, after a server reformat it went away, and now after another server reformat it's back again - no clue what's doing it. Here's the flow: Website root is public, no SSL no forms auth. One of the subfolders in the public area is the root of a "protected" area; SSL is required from this subfolder on forward and a web.config in the subfolder specifies forms authentication. From the public area, I provide a...
2
11462
by: marc | last post by:
Can you somehow make a new cookie in javascript code and then use that cookie in a new http session using Window.Open? It does not seem to be one of the parameters. I could open the window as part of an URL with '&' like parameters as an alternative I think, but I want to propogate login information from one website to another 'sister' website. So how can I open a new session and set the authorization cookie in javascript? Is that at...
1
3001
gagandeepgupta16
by: gagandeepgupta16 | last post by:
Hi I have one website -A in which there is an Iframe. 1. If i call another website -B inside the iframe in A then cookie is not getting created. 2. If the same website B is directly opened on browser the cookie is created. 3. If i go for 1. scenario and reduce the privacy setting of the browser (IE 7) by selecting "Allow session cookie..." then also cookie is created. The issue is i can ask the end users to reduce their browser's...
0
11157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10863
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10422
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7978
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5807
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4622
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3241
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.