Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 1999
Posts: 90
Member
Member
Offline
Joined: May 1999
Posts: 90
> Do you mean that you have another seperate include file contains
> some funtions from main.inc.php just for your own scripts?
There's no need to include the whole main.inc.php file. I've used only the authenticate function which basically selects a record (from the w3t database) that matches the specified username/pass (which in turn is fetched from cookies). If the user exists, the extra fields that I'm interested in are passed back so the calling script gets it.

As for the cookies: setcookie("w3t_myname","$CheckUser",time()+31536000,"",".domain.ro");
The empty parameter is the path, and the ".domain.ro" is the domain. Thus, if a.domain.ro sets the cookie, b.domain.ro will receive it too.
Unfortunately "domain.ro" cannot receive the cookie since there is a limitation that is enforced on all tlds (except for .com, .net, .org, .mil, .gov, .edu) regarding the minimum number of dots that are allowed when setting a cookie on a domain. Anyway, what's important for you is that for the above tlds you can set a cookie without the leading dot (as in my example) and have it working both on "domain.tld" and "host.domain.tld".

Sponsored Links
Entire Thread
Subject Posted By Posted
How to set/get W3T's cookie value? dannylin 08/09/2001 4:20 PM
Re: How to set/get W3T's cookie value? razvan 08/09/2001 5:45 PM
Re: How to set/get W3T's cookie value? dannylin 08/10/2001 2:42 AM
Re: How to set/get W3T's cookie value? razvan 08/10/2001 11:07 AM
Re: How to set/get W3T's cookie value? dannylin 08/10/2001 6:15 PM
Re: How to set/get W3T's cookie value? razvan 08/11/2001 3:01 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 6968
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 7
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)