Sponsored Content
Top Forums Web Development PHP Help - Delete cookies and redirect back to referrer Post 302373117 by Adrnalnrsh on Thursday 19th of November 2009 12:22:48 PM
Old 11-19-2009
PHP Help - Delete cookies and redirect back to referrer

I was wondering if any one would be willing to help me with this.

I'd like to create a 503 error page using a PHP script that will do the following:


- delete all cookies that contains 'something' in the host and 'JSESSIONID' as the cookie name. There are either 1 or 2 cookies that each user will have.
- redirect them to the referrer that sent them to this php script in the first place.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

PHP Redirect

I need a script named index.php . when i goto that page it redirects to html/index.php can someone please tell me the code required (2 Replies)
Discussion started by: perleo
2 Replies

2. UNIX for Dummies Questions & Answers

How to Block/Ban Traffic From Specific Referrer

I've got a problem site that I need to block all referrers, but if possible, I'd really like to ban all ip's at the same time so that they can't figure out a way around it. Any ideas? (4 Replies)
Discussion started by: osoamor
4 Replies

3. Programming

how to redirect back to stdout

In my program, I am using library provided by other. In the library, the cout/cerr is redirected to a file (the file path is known). After I call some methods in the library, I get one side-effect --> The cout/cerr in my own program is also directed to the file. So how can I to redirect... (5 Replies)
Discussion started by: princelinux
5 Replies

4. Shell Programming and Scripting

How to delete a string pattern in a file and write back to the same file

I have a control file which looks like this LOAD DATA INFILE '/array/data/data_Finished_T5_col_change/home/oracle/emp.dat' PRESERVE BLANKS INTO TABLE SCOTT.EMP FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS (................. ..................) How can i edit the... (1 Reply)
Discussion started by: mwrg
1 Replies

5. Shell Programming and Scripting

PHP Redirect Script

Hello Unix.com, I badly need to get rid of drones that access my website. I'm using a hits php script that logs every ip that visits my index.php. Looks like this: <?php $IP = getenv("REMOTE_ADDR"); $day = date('l jS \of F Y h:i:s A'); $fout = fopen("hits.txt", "a"); fputs($fout,... (0 Replies)
Discussion started by: galford
0 Replies

6. Shell Programming and Scripting

Pass back return code for file delete failure

Hello Experts, This script to delete a file is submitted from an SAP system which has 2 servers. When it happens to run on server 1, the delete is successful. When it runs on server 2, the delete always fails. All user accounts and permissions have been adjusted to match on both servers. Is it... (5 Replies)
Discussion started by: SAPDEVEL
5 Replies

7. UNIX for Dummies Questions & Answers

Cookies in UNIX

Ho can i access a url rom unix? And where can i get the cookies from unix directory? Vinodh (1 Reply)
Discussion started by: rvinodh3
1 Replies

8. Web Development

Using Javascript sessionStorage versus Cookies

In browsers that support HTML5 we can use sessionStorage in Javascript instead of Cookies to set variables that need to be persistent per session. For example, in this PHP code for the forums, we can do something like the following: $localStorage = '<script>'; $sessionStorage .=... (0 Replies)
Discussion started by: Neo
0 Replies
VOP_READDIR(9)						   BSD Kernel Developer's Manual					    VOP_READDIR(9)

NAME
VOP_READDIR -- read contents of a directory SYNOPSIS
#include <sys/param.h> #include <sys/dirent.h> #include <sys/vnode.h> int VOP_READDIR(struct vnode *vp, struct uio *uio, struct ucred *cred, int *eofflag, int *ncookies, u_long **cookies); DESCRIPTION
Read directory entries. vp The vnode of the directory. uio Where to read the directory contents. cred The caller's credentials. eofflag Return end of file status (NULL if not wanted). ncookies Number of directory cookies generated for NFS (NULL if not wanted). cookies Directory seek cookies generated for NFS (NULL if not wanted). The directory contents are read into struct dirent structures. If the on-disc data structures differ from this then they should be trans- lated. LOCKS
The directory should be locked on entry and will still be locked on exit. RETURN VALUES
Zero is returned on success, otherwise an error code is returned. If this is called from the NFS server, the extra arguments eofflag, ncookies and cookies are given. The value of *eofflag should be set to TRUE if the end of the directory is reached while reading. The directory seek cookies are returned to the NFS client and may be used later to restart a directory read part way through the directory. There should be one cookie returned per directory entry. The value of the cookie should be the offset within the directory where the on-disc version of the appropriate directory entry starts. Memory for the cookies should be allocated using: ...; *ncookies = number of entries read; *cookies = malloc(*ncookies * sizeof(u_long), M_TEMP, M_WAITOK); ERRORS
[EINVAL] An attempt was made to read from an illegal offset in the directory. [EIO] A read error occurred while reading the directory. SEE ALSO
vnode(9) AUTHORS
This manual page was written by Doug Rabson. BSD
July 24, 1996 BSD
All times are GMT -4. The time now is 02:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy